Skip to content

Commit e31a63d

Browse files
committed
add implements wsserverinterface for subprotocol
1 parent 737cf6b commit e31a63d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/server.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
use Ratchet\Http\HttpServer;
77
use Ratchet\WebSocket\WsServer;
88
use Ratchet\MessageComponentInterface;
9+
use Ratchet\WebSocket\WsServerInterface;
910
use Ratchet\ConnectionInterface;
1011
require dirname(dirname( __FILE__ )) . '/vendor/autoload.php';
1112

12-
class Socket implements MessageComponentInterface {
13+
class Socket implements MessageComponentInterface, WsServerInterface {
1314

1415
public function __construct()
1516
{

0 commit comments

Comments
 (0)