vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Function WebSocket.close

Actively closes the connection.

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

Parameters

NameDescription
code Numeric code indicating a termination reason.
reason Message describing why the connection was terminated.
Authors

Jan Krüger

Copyright

© 2012-2014 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.