Method Protocols.WebSocket.Connection()->close()


Method close

void close(void|string(8bit)|CLOSE_STATUS reason, void|string msg)

Description

Send a WebSocket connection close frame. The close callback will be called when the close handshake has been completed. No more frames can be sent after initiating the close handshake.