Skip to content

Commit

Permalink
TCP close reason update
Browse files Browse the repository at this point in the history
  • Loading branch information
cboden committed Apr 14, 2016
1 parent 01553f6 commit 02c2031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebSocket.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function() use ($reusableUAException) {

$stream->on('close', function () {
$close = $this->_close;
$close(1006, 'PHP Stream closed');
$close(Frame::CLOSE_ABNORMAL, 'Underlying connection closed');
});

$stream->on('error', function($error) {
Expand Down

0 comments on commit 02c2031

Please sign in to comment.