WebSocket.close

Closes the web socket.

class WebSocket
final
void
close
(
short code = 0
,
string reason = ""
)

Parameters

code short

The termination code.

reason string

A reason given, why the websocket has been closed.

Meta