Class WebSocket

Represents a single WebSocket connection.

Inherits from

Constructors

Name Description
this

Properties

Name Type Description
connected bool Determines if the WebSocket connection is still alive.
dataAvailableForRead bool Checks if data is readily available for read.

Methods

Name Description
send Sends a text message.
send Sends a binary message.
send Sends a message using an output stream.
close Actively closes the connection.
receive Receives a new message and returns its contents as a newly allocated data array.
receive Receives a new message using an InputStream.

Authors

Jan Krüger

Copyright

© 2012 RejectedSoftware e.K.

License

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