| 3 |
liveuser |
1 |
<?php
|
|
|
2 |
namespace Ratchet;
|
|
|
3 |
use Ratchet\ConnectionInterface;
|
|
|
4 |
use Ratchet\MessageComponentInterface;
|
|
|
5 |
use Ratchet\WebSocket\WsServerInterface;
|
|
|
6 |
use Ratchet\Wamp\WampServerInterface;
|
|
|
7 |
|
|
|
8 |
class NullComponent implements MessageComponentInterface, WsServerInterface, WampServerInterface {
|
|
|
9 |
public function onOpen(ConnectionInterface $conn) {}
|
|
|
10 |
|
|
|
11 |
public function onMessage(ConnectionInterface $conn, $msg) {}
|
|
|
12 |
|
|
|
13 |
public function onClose(ConnectionInterface $conn) {}
|
|
|
14 |
|
|
|
15 |
public function onError(ConnectionInterface $conn, \Exception $e) {}
|
|
|
16 |
|
|
|
17 |
public function onCall(ConnectionInterface $conn, $id, $topic, array $params) {}
|
|
|
18 |
|
|
|
19 |
public function onSubscribe(ConnectionInterface $conn, $topic) {}
|
|
|
20 |
|
|
|
21 |
public function onUnSubscribe(ConnectionInterface $conn, $topic) {}
|
|
|
22 |
|
|
|
23 |
public function onPublish(ConnectionInterface $conn, $topic, $event, array $exclude = array(), array $eligible = array()) {}
|
|
|
24 |
|
|
|
25 |
public function getSubProtocols() {
|
|
|
26 |
return array();
|
|
|
27 |
}
|
|
|
28 |
}
|