method WebSocket.close
Jump to headingWebSocket.close(code?: number,reason?: string,): void
Closes the WebSocket connection, optionally using code as the WebSocket connection close code and reason as the WebSocket connection close reason.
Parameters Jump to heading
optional
Jump to headingcode: number
optional
Jump to headingreason: string
Return Type Jump to heading
void