Function WebSocket.close
Actively closes the connection.
Prototype
void close(
short code = cast(short)0,
string reason = ""
);
Parameters
Name | Description |
---|---|
code | Numeric code indicating a termination reason . |
reason | Message describing why the connection was terminated. |
Authors
Jan Krüger
Copyright
© 2012-2014 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.