File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -133,19 +133,26 @@ class TcpConnection extends ConnectionInterface implements JsonSerializable
133
133
public $ onConnect = null ;
134
134
135
135
/**
136
- * Emitted before websocket handshake (Only works when protocol is ws).
136
+ * Emitted before websocket handshake (Only called when protocol is ws).
137
137
*
138
138
* @var ?callable
139
139
*/
140
140
public $ onWebSocketConnect = null ;
141
141
142
142
/**
143
- * Emitted after websocket handshake (Only works when protocol is ws).
143
+ * Emitted after websocket handshake (Only called when protocol is ws).
144
144
*
145
145
* @var ?callable
146
146
*/
147
147
public $ onWebSocketConnected = null ;
148
148
149
+ /**
150
+ * Emitted when websocket connection is closed (Only called when protocol is ws).
151
+ *
152
+ * @var ?callable
153
+ */
154
+ public $ onWebSocketClose = null ;
155
+
149
156
/**
150
157
* Emitted when data is received.
151
158
*
You can’t perform that action at this time.
0 commit comments