Package 

Class SocketListener


  • 
    public class SocketListener<EventType extends Object, ConnectedEventType extends Object>
    
                        

    Listener which is invoked for WebSocket events.

    • Constructor Detail

      • SocketListener

        SocketListener()
    • Method Detail

      • getDeliverOnMainThread

         Boolean getDeliverOnMainThread()

        The callbacks are by default delivered on the main thread. Changing this property to false will deliver the callbacks on their originating threads.

        Set to false for faster callback delivery on the original thread (no unnecessary context switching).

      • onConnecting

         Unit onConnecting()

        Invoked when the connection begins to establish and socket state changes to Connecting.

      • onEvent

         Unit onEvent(EventType event)

        Invoked when we receive any successful event.

        Parameters:
        event - parsed VideoEvent received in this web socket connection.