类 KuaishouConnectionHandler

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.FullHttpResponse>
tech.ordinaryroad.live.chat.client.servers.netty.handler.base.BaseConnectionHandler<ConnectionHandler>
所有已实现的接口:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

@Sharable public class KuaishouConnectionHandler extends BaseNettyClientConnectionHandler<KuaishouLiveChatClient,KuaishouConnectionHandler>
作者:
mjz
  • 构造器详细资料

    • KuaishouConnectionHandler

      public KuaishouConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, KuaishouLiveChatClient client, tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<KuaishouConnectionHandler> listener)
    • KuaishouConnectionHandler

      public KuaishouConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, KuaishouLiveChatClient client)
    • KuaishouConnectionHandler

      public KuaishouConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, long roomId, KuaishouApis.RoomInitResult roomInitResult, tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<KuaishouConnectionHandler> listener, String cookie)
    • KuaishouConnectionHandler

      public KuaishouConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, long roomId, KuaishouApis.RoomInitResult roomInitResult, tech.ordinaryroad.live.chat.client.commons.base.listener.IBaseConnectionListener<KuaishouConnectionHandler> listener)
    • KuaishouConnectionHandler

      public KuaishouConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, long roomId, KuaishouApis.RoomInitResult roomInitResult, String cookie)
    • KuaishouConnectionHandler

      public KuaishouConnectionHandler(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker, KuaishouApis.RoomInitResult roomInitResult, long roomId)
  • 方法详细资料

    • sendHeartbeat

      protected void sendHeartbeat(io.netty.channel.ChannelHandlerContext ctx)
      指定者:
      sendHeartbeat 在类中 tech.ordinaryroad.live.chat.client.servers.netty.handler.base.BaseConnectionHandler<KuaishouConnectionHandler>
    • sendAuthRequest

      public void sendAuthRequest(io.netty.channel.Channel channel)
      指定者:
      sendAuthRequest 在类中 tech.ordinaryroad.live.chat.client.servers.netty.handler.base.BaseConnectionHandler<KuaishouConnectionHandler>
    • getHeartbeatPeriod

      protected long getHeartbeatPeriod()
      指定者:
      getHeartbeatPeriod 在类中 tech.ordinaryroad.live.chat.client.servers.netty.handler.base.BaseConnectionHandler<KuaishouConnectionHandler>
    • getHeartbeatInitialDelay

      protected long getHeartbeatInitialDelay()
      指定者:
      getHeartbeatInitialDelay 在类中 tech.ordinaryroad.live.chat.client.servers.netty.handler.base.BaseConnectionHandler<KuaishouConnectionHandler>
    • getRoomId

      public Object getRoomId()