程序包 cool.scx.socket
类 TypeConverter
java.lang.Object
cool.scx.socket.ScxSocketBase
cool.scx.socket.EventManager
cool.scx.socket.ScxSocket
cool.scx.socket.PingPongManager
cool.scx.socket.TypeConverter
- 直接已知子类:
ScxSocketClient,ScxSocketClientConnect
便于使用
-
嵌套类概要
嵌套类 -
字段概要
从类继承的字段 cool.scx.socket.EventManager
duplicateFrameChecker从类继承的字段 cool.scx.socket.ScxSocketBase
logger, options, webSocket -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明<T> voidonEvent(String eventName, BiConsumer<T, TypeConverter.TypeRequest> onEvent, com.fasterxml.jackson.core.type.TypeReference<T> tClass) <T> voidonEvent(String eventName, BiConsumer<T, TypeConverter.TypeRequest> onEvent, Class<T> tClass) <T> voidonEvent(String eventName, Consumer<T> onEvent, com.fasterxml.jackson.core.type.TypeReference<T> tClass) <T> void<T> voidonEvent(String eventName, Function<T, ?> onEvent, com.fasterxml.jackson.core.type.TypeReference<T> tClass) <T> voidvoidvoidsend(Object data, SendOptions options) voidvoidsendEvent(String eventName, Object data, SendOptions options) voidvoid<T> voidsendEvent(String eventName, Object data, Consumer<T> responseCallback, com.fasterxml.jackson.core.type.TypeReference<T> tClass) <T> voidsendEvent(String eventName, Object data, Consumer<T> responseCallback, SendOptions options, com.fasterxml.jackson.core.type.TypeReference<T> tClass) <T> voidsendEvent(String eventName, Object data, Consumer<T> responseCallback, SendOptions options, Class<T> tClass) <T> void从类继承的方法 cool.scx.socket.PingPongManager
close, doPingTimeout, doSocketFrame, startPing从类继承的方法 cool.scx.socket.EventManager
callOnClose, callOnError, callOnEventWithCheckDuplicateAsync, callOnMessageWithCheckDuplicateAsync, callResponseCallback, callResponseCallbackAsync, onClose, onError, onEvent, onEvent, onEvent, onMessage, removeEvent, setResponseCallback从类继承的方法 cool.scx.socket.ScxSocketBase
bind, closeWebSocket, isClosed, removeBind, send, send, sendAck, sendEvent, sendEvent, sendEvent, sendEvent, sendResponse
-
构造器详细资料
-
TypeConverter
-
-
方法详细资料
-
send
-
send
-
sendEvent
-
sendEvent
-
sendEvent
-
sendEvent
public void sendEvent(String eventName, Object data, Consumer<String> responseCallback, SendOptions options) -
sendEvent
-
sendEvent
public <T> void sendEvent(String eventName, Object data, Consumer<T> responseCallback, SendOptions options, Class<T> tClass) -
sendEvent
-
sendEvent
public <T> void sendEvent(String eventName, Object data, Consumer<T> responseCallback, SendOptions options, com.fasterxml.jackson.core.type.TypeReference<T> tClass) -
onEvent
-
onEvent
-
onEvent
-
onEvent
-
onEvent
public <T> void onEvent(String eventName, BiConsumer<T, TypeConverter.TypeRequest> onEvent, Class<T> tClass) -
onEvent
public <T> void onEvent(String eventName, BiConsumer<T, TypeConverter.TypeRequest> onEvent, com.fasterxml.jackson.core.type.TypeReference<T> tClass)
-