WebWebSocketsWebSocket.closemethod WebSocket.close#WebSocket.close(code?: number,reason?: string,): voidCloses the WebSocket connection, optionally using code as the WebSocket connection close code and reason as the WebSocket connection close reason. Parameters #optional#code: numberoptional#reason: stringReturn Type #void
method WebSocket.close#WebSocket.close(code?: number,reason?: string,): voidCloses the WebSocket connection, optionally using code as the WebSocket connection close code and reason as the WebSocket connection close reason. Parameters #optional#code: numberoptional#reason: stringReturn Type #void