Package 

Interface WebSocket.Factory

    • Method Summary

      Modifier and Type Method Description
      abstract WebSocket newWebSocket(MobonRequest mobonRequest, WebSocketListener listener) Creates a new web socket and immediately returns it.
      • Methods inherited from class java.lang.Object

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

      • newWebSocket

         abstract WebSocket newWebSocket(MobonRequest mobonRequest, WebSocketListener listener)

        Creates a new web socket and immediately returns it. Creating a web socket initiates anasynchronous process to connect the socket. Once that succeeds or fails, {@code listener} will be notified. The caller must either close or cancel the returned web socket when it isno longer in use.