Class WebSocket

Represents a single WebSocket connection.

Inherits from

Constructors

Name Description
this

Methods

Name Description
connected Determines if the WebSocket connection is still alive.
dataAvailableForRead Checks if data is readily available for read.
send Sends a text message.
send Sends a binary message.
send Sends a message using an output stream.
close Actively closes the connection.
receiveBinary Receives a new message and returns its contents as a newly allocated data array.
receiveText Receives a new message and returns its contents as a newly allocated data array.
receive Receives a new message using an InputStream.

Aliases

Name Description
receive Compatibility alias for readBinary. Will be deprecated at some point.

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.