Syntax
WebSocket.Close(socket: WebSocket)Arguments
| Name | Type | Description |
|---|---|---|
socket | WebSocket | Open WebSocket handle returned by WebSocket.connect. |
Description
Closes an open WebSocket connection.
Call it with 1 parameter(s): socket. The argument table explains which values are required and which ones only refine the behavior.
It does not return data. Treat the call as an action and handle errors around the call site when needed.
Example
Example call with placeholder values.
WebSocket.Close(nil)