Skip to content

Commit

Permalink
Merge pull request #10 from olehs/patch-1
Browse files Browse the repository at this point in the history
Missing second \r\n at the end of request
  • Loading branch information
nekudo committed Jun 4, 2016
2 parents eecaf05 + c2e81d3 commit 9fd3400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/lib/class.websocket_client.php
Original file line number Diff line number Diff line change
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 9fd3400

Please sign in to comment.