WebSocket.close

Actively closes the connection.

class WebSocket
@safe
void
close
(
short code = 0
,
scope const(char)[] reason = ""
)

Parameters

code short

Numeric code indicating a termination reason.

reason const(char)[]

Message describing why the connection was terminated.

Meta