vibe.d beta banner
get vibe.d
0.7.30

Function WebSocket.close

Actively closes the connection.

Prototype

void close(
  short code = cast(short)0,
  scope const(char)[] reason = ""
);

Parameters

NameDescription
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.