You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `handshakeResponse` object contains the HTTP response that upgraded the connection to WebSocket:
194
+
195
+
-`status` (number): The HTTP status code (101 for successful WebSocket upgrade)
196
+
-`statusText` (string): The HTTP status message ('Switching Protocols' for successful upgrade)
197
+
-`headers` (object): The HTTP response headers from the server, including:
198
+
-`upgrade: 'websocket'`
199
+
-`connection: 'upgrade'`
200
+
-`sec-websocket-accept` and other WebSocket-related headers
201
+
202
+
This information is particularly useful for debugging and monitoring WebSocket connections, as it provides access to the initial HTTP handshake response that established the WebSocket connection.
203
+
180
204
## `undici:websocket:close`
181
205
182
206
This message is published after the connection has closed.
0 commit comments