WebSocketConnection.sendCloseMessage

Sends a close message to the client, indicating that we'll be closing the connection.

class WebSocketConnection
void
sendCloseMessage

Parameters

status WebSocketCloseStatusCode

The status code for closing.

message string

A message explaining why we're closing. Length must be <= 123.