diff --git a/client/lib/class.websocket_client.php b/client/lib/class.websocket_client.php index fab19c7..4962ad9 100644 --- a/client/lib/class.websocket_client.php +++ b/client/lib/class.websocket_client.php @@ -83,8 +83,8 @@ public function connect($host, $port, $path, $origin = false) if ($matches) { $keyAccept = trim($matches[1]); - $expectedResonse = base64_encode(pack('H*', sha1($key . '258EAFA5-E914-47DA-95CA-C5AB0DC85B11'))); - $this->_connected = ($keyAccept === $expectedResonse) ? true : false; + $expectedResponse = base64_encode(pack('H*', sha1($key . '258EAFA5-E914-47DA-95CA-C5AB0DC85B11'))); + $this->_connected = ($keyAccept === $expectedResponse) ? true : false; } return $this->_connected;