程序包 cool.scx.socket

类 ScxSocket

java.lang.Object
cool.scx.socket.ScxSocket
直接已知子类:
PingPongManager

public class ScxSocket extends Object
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • send

      protected void send(ScxSocketFrame socketFrame, SendOptions options)
    • doMessage

      protected void doMessage(ScxSocketFrame socketFrame)
    • doResponse

      protected void doResponse(ScxSocketFrame socketFrame)
    • doAck

      protected void doAck(ScxSocketFrame ackFrame)
    • doClose

      protected void doClose(Void v)
    • doError

      protected void doError(Throwable e)
    • close

      public void close()
    • clientID

      public String clientID()
    • send

      public void send(String content)
    • send

      public void send(String content, SendOptions options)
    • sendEvent

      public void sendEvent(String eventName, String data)
    • sendEvent

      public void sendEvent(String eventName, String data, SendOptions options)
    • sendEvent

      public void sendEvent(String eventName, String data, Consumer<String> responseCallback)
    • sendEvent

      public void sendEvent(String eventName, String data, Consumer<String> responseCallback, SendOptions options)
    • sendResponse

      protected void sendResponse(long ack_id, String responseData)
    • sendAck

      protected void sendAck(long ack_id)
    • bind

      protected void bind(io.vertx.core.http.WebSocketBase webSocket)
    • doSocketFrame

      protected void doSocketFrame(ScxSocketFrame socketFrame)
    • closeWebSocket

      protected void closeWebSocket()
    • isClosed

      public boolean isClosed()
    • onMessage

      public final void onMessage(Consumer<String> onMessage)
    • onClose

      public final void onClose(Consumer<Void> onClose)
    • onError

      public final void onError(Consumer<Throwable> onError)
    • onEvent

      public final void onEvent(String eventName, Consumer<String> onEvent)
    • onEvent

      public final void onEvent(String eventName, Function<String,String> onEvent)
    • onEvent

      public final void onEvent(String eventName, BiConsumer<String,ScxSocketRequest> onEvent)
    • removeEvent

      public final void removeEvent(String eventName)
    • callOnClose

      protected void callOnClose(Void v)
    • callOnError

      protected void callOnError(Throwable e)
    • callOnMessageWithCheckDuplicateAsync

      protected final void callOnMessageWithCheckDuplicateAsync(ScxSocketFrame socketFrame)
    • callOnEventWithCheckDuplicateAsync

      protected final void callOnEventWithCheckDuplicateAsync(ScxSocketFrame socketFrame)
    • setResponseCallback

      protected final void setResponseCallback(ScxSocketFrame socketFrame, Consumer<String> responseCallback)
    • callResponseCallback

      protected void callResponseCallback(ScxSocketFrame socketFrame)
    • callResponseCallbackAsync

      protected void callResponseCallbackAsync(ScxSocketFrame socketFrame)