@ChannelHandler.Sharable public class WebSocketTransport extends BaseTransport
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
protected String |
path |
| Constructor and Description |
|---|
WebSocketTransport(String connectPath,
boolean isSsl,
AckManager ackManager,
DisconnectableHub disconnectable,
AuthorizeHandler authorizeHandler,
HeartbeatHandler heartbeatHandler,
StoreFactory storeFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
void |
channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) |
Iterable<SocketIOClient> |
getAllClients() |
protected Transport |
getTransport() |
void |
onDisconnect(MainBaseClient client) |
protected void |
removeHandler(io.netty.channel.ChannelPipeline pipeline) |
getAllClientschannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredhandlerAdded, handlerRemoved, isSharablepublic static final String NAME
protected String path
public WebSocketTransport(String connectPath, boolean isSsl, AckManager ackManager, DisconnectableHub disconnectable, AuthorizeHandler authorizeHandler, HeartbeatHandler heartbeatHandler, StoreFactory storeFactory)
public void channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
throws Exception
channelRead in interface io.netty.channel.ChannelInboundHandlerchannelRead in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelReadComplete in interface io.netty.channel.ChannelInboundHandlerchannelReadComplete in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionprotected Transport getTransport()
protected void removeHandler(io.netty.channel.ChannelPipeline pipeline)
public void onDisconnect(MainBaseClient client)
public Iterable<SocketIOClient> getAllClients()
Copyright © 2012–2014. All rights reserved.