AF_INET , 'type' => SOCK_STREAM , 'protocol' => SOL_TCP , 'options' => Array( SOL_SOCKET => Array(SO_REUSEADDR => 1) ) ); } /** * @return string */ function getName() { return 'WebSocket'; } public function setUp(Server $server) { $this->_server = $server; } function handleConnect(Socket $client) { } function handleMessage($message, Socket $from) { } function handleClose(Socket $client) { } }