WebSocketConnection

Undocumented in source.

Members

Functions

generateMask
byte[] generateMask()

Generate random 4bytes mask key

getIOState
IOState getIOState()

Get the IOState of the connection.

getPolicy
WebSocketPolicy getPolicy()

The policy that the connection is running under.

getUpgradeRequest
HttpRequest getUpgradeRequest()

Get the websocket upgrade request.

getUpgradeResponse
HttpResponse getUpgradeResponse()

Get the websocket upgrade response.

onClose
WebSocketConnection onClose(Action1!(WebSocketConnection) closedListener)

Register the connection close callback.

onException
WebSocketConnection onException(Action2!(WebSocketConnection, Exception) exceptionListener)

Register the exception callback.

sendData
CompletableFuture!(bool) sendData(byte[] data)

Send binary message.

sendData
CompletableFuture!(bool) sendData(ByteBuffer data)

Send binary message.

sendText
CompletableFuture!(bool) sendText(string text)

Send text message.

Inherited Members

From OutgoingFrames

outgoingFrame
void outgoingFrame(Frame frame, Callback callback)

A frame, and optional callback, intended for the network layer. <p> Note: the frame can undergo many transformations in the various layers and extensions present in the implementation. <p> If you are implementing a mutation, you are obliged to handle the incoming WriteCallback appropriately.

Meta