Skip to content

Commit 8e3c463

Browse files
authored
Merge pull request #11 from JoseRolles/patch-1
Fix typo
2 parents 9fd3400 + 62e9293 commit 8e3c463

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/lib/class.websocket_client.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ public function connect($host, $port, $path, $origin = false)
8383

8484
if ($matches) {
8585
$keyAccept = trim($matches[1]);
86-
$expectedResonse = base64_encode(pack('H*', sha1($key . '258EAFA5-E914-47DA-95CA-C5AB0DC85B11')));
87-
$this->_connected = ($keyAccept === $expectedResonse) ? true : false;
86+
$expectedResponse = base64_encode(pack('H*', sha1($key . '258EAFA5-E914-47DA-95CA-C5AB0DC85B11')));
87+
$this->_connected = ($keyAccept === $expectedResponse) ? true : false;
8888
}
8989

9090
return $this->_connected;

0 commit comments

Comments
 (0)