Package 

Interface WebSocketEventListener

    • Method Summary

      Modifier and Type Method Description
      abstract void onOpen() webSocket connected
      abstract void onClose(int code, String reason, boolean remote) webSocket disconnected
      abstract void onMessage(String msg) receive msg from server
      abstract void onError(Exception e) connection has error
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onOpen

         abstract void onOpen()

        webSocket connected

      • onClose

         abstract void onClose(int code, String reason, boolean remote)

        webSocket disconnected

      • onMessage

         abstract void onMessage(String msg)

        receive msg from server

        Parameters:
        msg - data
      • onError

         abstract void onError(Exception e)

        connection has error

        Parameters:
        e - exception