Interface WebSocketListener


  • public interface WebSocketListener
    A listener used to notify about about new WebSocket messages.
    • Method Detail

      • onMessage

        void onMessage​(java.lang.String message)
                throws java.io.IOException
        Called when a new WebSocket message is delivered.
        Parameters:
        message - new WebSocket message
        Throws:
        java.io.IOException - thrown if an observer failed to process the message
      • onError

        void onError​(java.lang.Exception e)
      • onClose

        void onClose()