1 | <?php |
||
9 | class PusherChannelProtocolMessage extends PusherClientMessage |
||
10 | { |
||
11 | /** |
||
12 | * Respond with the payload. |
||
13 | * |
||
14 | * @return void |
||
15 | */ |
||
16 | public function respond() |
||
24 | |||
25 | /** |
||
26 | * Ping the connection. |
||
27 | * |
||
28 | * @see https://pusher.com/docs/pusher_protocol#ping-pong |
||
29 | * @param \Ratchet\ConnectionInterface $connection |
||
30 | * @return void |
||
31 | */ |
||
32 | protected function ping(ConnectionInterface $connection) |
||
38 | |||
39 | /** |
||
40 | * Subscribe to channel. |
||
41 | * |
||
42 | * @see https://pusher.com/docs/pusher_protocol#pusher-subscribe |
||
43 | * @param \Ratchet\ConnectionInterface $connection |
||
44 | * @param \stdClass $payload |
||
45 | * @return void |
||
46 | */ |
||
47 | protected function subscribe(ConnectionInterface $connection, stdClass $payload) |
||
51 | |||
52 | /** |
||
53 | * Unsubscribe from the channel. |
||
54 | * |
||
55 | * @param \Ratchet\ConnectionInterface $connection |
||
56 | * @param \stdClass $payload |
||
57 | * @return void |
||
58 | */ |
||
59 | public function unsubscribe(ConnectionInterface $connection, stdClass $payload) |
||
63 | } |
||
64 |