Function WebSocket.close
Actively closes the connection.
void close
(
short code = cast(short)1000,
scope const(char)[] reason = ""
) scope scope @safe;
Parameters
Name | Description |
---|---|
code | Numeric code indicating a termination reason. |
reason | Message describing why the connection was terminated. |