1 # void pq\Connection::unlisten(string $channel)
3 Stop listening for notifications on channel $channel.
4 See pq\Connection::listen().
9 The name of a channel which is currently listened on.
13 * pq\Exception\InvalidArgumentException
14 * pq\Exception\BadMethodCallException
15 * pq\Exception\RuntimeException
22 $conn = new pq\Connection;
23 $conn->listen("foo", function($channel, $message, $backend_pid) {
24 printf("Got message '%s' on channel '%s' from backend %d\n",
25 $message, $channel, $backend_pid);
28 $conn->notify("foo", "bar");
29 $conn->unlisten("foo");