public class WebSocketTransport.SocketIOWebSocketSessionWrapperImpl extends Object implements SocketIOWebSocketSessionWrapper
| Modifier and Type | Field and Description |
|---|---|
boolean |
initiated |
SocketIOSession |
session |
SocketIOWebSocketEventListener |
socketioEventListener |
org.atmosphere.websocket.WebSocket |
webSocket |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Cause connection and all activity to be aborted and all resources to be released.
|
void |
close()
force close connection
|
void |
disconnect()
disconnect the current connection
|
SocketIOSession |
getSession() |
String |
getSessionId() |
org.atmosphere.cpr.Action |
handle(org.atmosphere.cpr.AtmosphereRequest request,
org.atmosphere.cpr.AtmosphereResponse response,
SocketIOSession session) |
void |
initiated(boolean initiated) |
boolean |
isInitiated() |
void |
onDisconnect() |
void |
onMessage(byte frame,
byte[] data,
int offset,
int length) |
void |
onMessage(byte frame,
String message) |
void |
sendMessage(List<SocketIOPacketImpl> messages)
Send messages to the client.
|
void |
sendMessage(SocketIOPacket packet)
Send a message to the client formatted is SocketIO format.
|
void |
sendMessage(String message)
Send a message to the client.
|
void |
setWebSocket(org.atmosphere.websocket.WebSocket websocket) |
org.atmosphere.websocket.WebSocket |
webSocket() |
public final SocketIOSession session
public final SocketIOWebSocketEventListener socketioEventListener
public boolean initiated
public org.atmosphere.websocket.WebSocket webSocket
public void onDisconnect()
onDisconnect in interface SocketIOWebSocketSessionWrapperpublic void onMessage(byte frame,
String message)
onMessage in interface SocketIOWebSocketSessionWrapperpublic void onMessage(byte frame,
byte[] data,
int offset,
int length)
onMessage in interface SocketIOWebSocketSessionWrapperpublic void disconnect()
SocketIOOutbounddisconnect in interface SocketIOOutboundpublic void close()
SocketIOOutboundclose in interface SocketIOOutboundpublic void sendMessage(SocketIOPacket packet) throws SocketIOException
SocketIOOutboundsendMessage in interface SocketIOOutboundpacket - The message to sendSocketIOExceptionpublic void sendMessage(List<SocketIOPacketImpl> messages) throws SocketIOException
SocketIOOutboundsendMessage in interface SocketIOOutboundSocketIOExceptionpublic void sendMessage(String message) throws SocketIOException
SocketIOOutboundsendMessage in interface SocketIOOutboundmessage - The message to sendSocketIOExceptionpublic org.atmosphere.cpr.Action handle(org.atmosphere.cpr.AtmosphereRequest request,
org.atmosphere.cpr.AtmosphereResponse response,
SocketIOSession session)
throws IOException
handle in interface SocketIOSessionOutboundIOExceptionpublic void abort()
SocketIOSessionOutboundabort in interface SocketIOSessionOutboundpublic SocketIOSession getSession()
getSession in interface SocketIOWebSocketSessionWrapperpublic boolean isInitiated()
isInitiated in interface SocketIOWebSocketSessionWrapperpublic org.atmosphere.websocket.WebSocket webSocket()
webSocket in interface SocketIOWebSocketSessionWrapperpublic void setWebSocket(org.atmosphere.websocket.WebSocket websocket)
setWebSocket in interface SocketIOWebSocketSessionWrapperpublic void initiated(boolean initiated)
initiated in interface SocketIOWebSocketSessionWrapperpublic String getSessionId()
getSessionId in interface SocketIOSessionOutboundCopyright © 2017. All Rights Reserved.