Skip to content

Commit d80eb0d

Browse files
committed
Added missing WS callable to TCP connection class.
1 parent a4d8316 commit d80eb0d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/Connection/TcpConnection.php

+9-2
Original file line numberDiff line numberDiff line change
@@ -133,19 +133,26 @@ class TcpConnection extends ConnectionInterface implements JsonSerializable
133133
public $onConnect = null;
134134

135135
/**
136-
* Emitted before websocket handshake (Only works when protocol is ws).
136+
* Emitted before websocket handshake (Only called when protocol is ws).
137137
*
138138
* @var ?callable
139139
*/
140140
public $onWebSocketConnect = null;
141141

142142
/**
143-
* Emitted after websocket handshake (Only works when protocol is ws).
143+
* Emitted after websocket handshake (Only called when protocol is ws).
144144
*
145145
* @var ?callable
146146
*/
147147
public $onWebSocketConnected = null;
148148

149+
/**
150+
* Emitted when websocket connection is closed (Only called when protocol is ws).
151+
*
152+
* @var ?callable
153+
*/
154+
public $onWebSocketClose = null;
155+
149156
/**
150157
* Emitted when data is received.
151158
*

0 commit comments

Comments
 (0)