pq\Result docs
[mdref/mdref-pq] / pq / Connection / notifyAsync.md
1 # void pq\Connection::notifyAsync(string $channel, string $message)
2
3 [Asynchronously](pq/Connection/: Asynchronous Usage) start notifying all listeners on $channel with $message.
4
5 ## Params:
6
7 * string $channel
8 The channel to notify.
9 * string $message
10 The message to send.
11
12 ## Throws:
13
14 * pq\Exception\InvalidArgumentException
15 * pq\Exception\BadMethodCallException
16 * pq\Exception\RuntimeException
17
18 ## Example:
19
20 <?php
21
22 $conn = new pq\Connection;
23 $conn->notifyAsync("queue", "Hello World!");
24
25 ?>