Method Protocols.WebSocket.Connection()->fail()
- Method
fail
voidfail(void|CLOSE_STATUSreason)- Description
Send a WebSocket connection close frame and terminate the connection. The default
reasonis CLOSE_ERROR.
void fail(void|CLOSE_STATUS reason)
Send a WebSocket connection close frame and terminate the connection.
The default reason is CLOSE_ERROR.