typo & link fixes
[mdref/mdref-pq] / pq / Connection / notify.md
1 # void pq\Connection::notify(string $channel, string $message)
2
3 Notify 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->notify("queue", "Hello World!");
24
25 ?>