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

Determines if the WebSocket connection is still alive and ready for sending.

bool connected() @property @safe;

Note that for determining the ready state for reading, you need to use waitForData instead, because both methods can return different values while a disconnect is in proress.

See also

waitForData

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.