Skip to content

Commit

Permalink
Missing second \r\n at the end of request
Browse files Browse the repository at this point in the history
  • Loading branch information
olehs committed Jun 4, 2016
1 parent 46067e9 commit a6c5ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/lib/class.websocket_client.php
Expand Up @@ -72,7 +72,7 @@ public function connect($host, $port, $path, $origin = false)
{
$header.= "Sec-WebSocket-Origin: " . $origin . "\r\n";
}
$header.= "Sec-WebSocket-Version: 13\r\n";
$header.= "Sec-WebSocket-Version: 13\r\n\r\n";

$this->_Socket = fsockopen($host, $port, $errno, $errstr, 2);
socket_set_timeout($this->_Socket, 0, 10000);
Expand Down

0 comments on commit a6c5ef0

Please sign in to comment.