WebSocket.close

Actively closes the connection.

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

Parameters

code short

Numeric code indicating a termination reason.

reason const(char)[]

Message describing why the connection was terminated.

Meta