类 AbstractWebSocket
java.lang.Object
com.cdkjframework.web.socket.impl.AbstractWebSocket
- 所有已实现的接口:
WebSocket
-
字段概要
从接口继承的字段 com.cdkjframework.web.socket.WebSocket
AUTHORITY, AUTHORITY_FAILED, SYSTEM_TYPE, TYPE
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
onDisconnect
(String channelId) 断开连接void
onHeartbeat
(io.netty.channel.Channel channel) 心跳包void
onHeartbeat
(String channelId) 断开连接abstract void
onMessage
(WebSocketEntity webSocketEntity) 消息信息void
onSendMessage
(io.netty.channel.Channel channel, String message, String type) 发送消息void
onSendMessage
(String channelId, String message, String type) 发送消息
-
构造器详细资料
-
AbstractWebSocket
public AbstractWebSocket()
-
-
方法详细资料
-
onMessage
消息信息 -
onDisconnect
断开连接- 指定者:
onDisconnect
在接口中WebSocket
- 参数:
channelId
- 通道ID
-
onHeartbeat
断开连接- 指定者:
onHeartbeat
在接口中WebSocket
- 参数:
channelId
- 通道ID
-
onHeartbeat
public void onHeartbeat(io.netty.channel.Channel channel) 心跳包- 指定者:
onHeartbeat
在接口中WebSocket
- 参数:
channel
- 通道
-
onSendMessage
发送消息- 指定者:
onSendMessage
在接口中WebSocket
- 参数:
channel
- 通道message
- 消息内容type
- 数据类型
-
onSendMessage
发送消息- 指定者:
onSendMessage
在接口中WebSocket
- 参数:
channelId
- 通道IDmessage
- 消息内容type
- 数据类型
-