public class WebSocketChannel extends AbstractWebSocketChannel implements javax.websocket.MessageHandler.Whole<byte[]>
clientType, factory, gravity, id, publishedQueue, publishedQueueLock, publisher, receivedQueue, receivedQueueLock, receiver, sessionId, subscriptions, udpReceiver, userPrincipal| Constructor and Description |
|---|
WebSocketChannel(GravityInternal gravity,
java.lang.String id,
WebSocketChannelFactory factory,
java.lang.String clientType) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isConnected() |
void |
onMessage(byte[] data) |
void |
onWebSocketClose(int closeCode,
java.lang.String message) |
void |
onWebSocketConnect(javax.websocket.Session session) |
void |
onWebSocketError(java.lang.Throwable throwable) |
protected void |
sendBytes(byte[] msg) |
acquireAsyncHttpContext, cleanupRequest, connect, deserialize, destroy, getContentType, getMaxBinaryMessageBufferSize, hasAsyncHttpContext, initializeRequest, receiveBytes, releaseAsyncHttpContext, runReceived, serialize, setConnectAckMessage, setContentType, setMaxBinaryMessageBufferSize, setSessionaddSubscription, createUdpReceiver, destroy, equals, getClientType, getFactory, getGravity, getId, getSubscriptions, getUserPrincipal, hashCode, hasPublishedMessage, hasReceivedMessage, isAuthenticated, publish, queueReceiver, receive, removeSubscription, runPublish, runReceive, setUserPrincipal, toStringpublic WebSocketChannel(GravityInternal gravity, java.lang.String id, WebSocketChannelFactory factory, java.lang.String clientType)
public void onWebSocketConnect(javax.websocket.Session session)
public void onWebSocketClose(int closeCode,
java.lang.String message)
public void onWebSocketError(java.lang.Throwable throwable)
public void onMessage(byte[] data)
onMessage in interface javax.websocket.MessageHandler.Whole<byte[]>public boolean isConnected()
isConnected in interface ChannelisConnected in class AbstractWebSocketChannelprotected void sendBytes(byte[] msg)
throws java.io.IOException
sendBytes in class AbstractWebSocketChanneljava.io.IOException