We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4048dc4 + 3af4268 commit 5eb6babCopy full SHA for 5eb6bab
1 file changed
src/WebSocketConnection.php
@@ -68,6 +68,9 @@ function (Frame $frame) {
68
$this->messageBuffer = $mb;
69
70
$stream->on('data', [$mb, 'onData']);
71
+ $stream->on('close', function () {
72
+ $this->emit('close', [1006, $this, '']);
73
+ });
74
}
75
76
public function send($data)
0 commit comments