protected function _onOpen($connectionId) { $this->_handshakes[$connectionId] = ''; //mark the connection that it needs a handshake }