Class PersistentSocket

  • All Implemented Interfaces:

    
    public class PersistentSocket<T extends Object>
    extends WebSocketListener
                        

    PersistentSocket architecture

    • Healthmonitor that sends a ping every 30 seconds

    • Automatically reconnects if it encounters a temp failure

    • Raises the error if there is a permanent failure

    • Flow to avoid concurrency related bugs

    • Ability to wait till the socket is connected (important to prevent race conditions)