Function WebSocket.closeReason
Returns the close reason sent by the remote end.
const(char)[] closeReason() scope @property scope @safe;
Note if the connection was never opened, is still alive, or was closed locally this value will be an empty string.