public interface WebSocketHandler<S,T>
| Modifier and Type | Method and Description | 
|---|---|
| void | onBinaryMessage(WebSocketConnection connection,
               T state,
               byte[] result,
               int size) | 
| void | onClose(WebSocketConnection connection,
       T state) | 
| void | onError(WebSocketConnection connection,
       T state,
       String msg) | 
| void | onException(WebSocketConnection connection,
           T state,
           Exception failed) | 
| void | onMessage(WebSocketConnection connection,
         T state,
         String msg) | 
| T | onOpen(WebSocketConnection connection,
      HttpRequest headers,
      S sessionState) | 
| default void | onPing(WebSocketConnection connection,
      T state,
      byte[] result,
      int size,
      StringDecoder charset) | 
| default void | onPong(WebSocketConnection connection,
      T state,
      byte[] result,
      int size) | 
T onOpen(WebSocketConnection connection, HttpRequest headers, S sessionState)
void onMessage(WebSocketConnection connection, T state, String msg)
void onClose(WebSocketConnection connection, T state)
void onError(WebSocketConnection connection, T state, String msg)
void onException(WebSocketConnection connection, T state, Exception failed)
void onBinaryMessage(WebSocketConnection connection, T state, byte[] result, int size)
default void onPing(WebSocketConnection connection, T state, byte[] result, int size, StringDecoder charset)
default void onPong(WebSocketConnection connection, T state, byte[] result, int size)
Copyright © 2016. All Rights Reserved.