diff --git a/server/lib/WebSocket/Connection.php b/server/lib/WebSocket/Connection.php index 767171e..25e4b15 100644 --- a/server/lib/WebSocket/Connection.php +++ b/server/lib/WebSocket/Connection.php @@ -216,7 +216,7 @@ private function handle($data) $this->server->getApplication('status')->clientActivity($this->port); } - if(!isset($data['type'])) + if(!isset($decodedData['type'])) { $this->sendHttpResponse(401); stream_socket_shutdown($this->socket, STREAM_SHUT_RDWR);