程序包 cool.scx.socket
类 ScxSocketClientConnect
java.lang.Object
cool.scx.socket.event.EventManager
cool.scx.socket.core.ScxSocket
cool.scx.socket.ping_pong.PingPongManager
cool.scx.socket.ScxSocketClientConnect
- 所有已实现的接口:
EasyUseHelper
客户端连接对象
-
嵌套类概要
从接口继承的嵌套类/接口 cool.scx.socket.helper.EasyUseHelper
EasyUseHelper.TypeRequest -
字段概要
从类继承的字段 cool.scx.socket.event.EventManager
eventHandlerMap, onClose, onError, onMessage从接口继承的字段 cool.scx.socket.helper.EasyUseHelper
DEFAULT_REQUEST_OPTIONS, DEFAULT_SEND_OPTIONS -
构造器概要
构造器构造器说明ScxSocketClientConnect(ScxSocketClientConnect oldClientConnect) ScxSocketClientConnect(String clientID, ScxSocketServerOptions serverOptions, ScxSocketServer scxSocketServer) -
方法概要
从类继承的方法 cool.scx.socket.ping_pong.PingPongManager
doSocketFrame从类继承的方法 cool.scx.socket.core.ScxSocket
bind, clientID, closeWebSocket, createRequest, doAck, doClose, doError, doMessage, doResponse, frameCreator, isClosed, onClose, onError, requestManager, send, sendAck, sendResponse从类继承的方法 cool.scx.socket.event.EventManager
_callOnClose, _callOnCloseAsync, _callOnError, _callOnErrorAsync, _callOnEvent, _callOnEventAsync, _callOnMessage, _callOnMessageAsync, onEvent, onEvent, onEvent, onMessage, removeEvent
-
构造器详细资料
-
ScxSocketClientConnect
public ScxSocketClientConnect(String clientID, ScxSocketServerOptions serverOptions, ScxSocketServer scxSocketServer) -
ScxSocketClientConnect
-
-
方法详细资料
-
start
protected void start(io.vertx.core.http.WebSocketBase webSocket) - 覆盖:
start在类中PingPongManager
-
close
public void close()- 覆盖:
close在类中PingPongManager
-
startPing
protected void startPing()服务端不需要 ping 客户端 只需要等待 pong 并在心跳超时后关闭即可- 覆盖:
startPing在类中PingPongManager
-
doPingTimeout
protected void doPingTimeout()- 指定者:
doPingTimeout在类中PingPongManager
-