Interface WebSocketListener


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

    Modifier and Type
    Method
    Description
    void
     
    void
     
    void
    onMessage(String message)
    Called when a new WebSocket message is delivered.
  • Method Details

    • onMessage

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

      void onError(Exception e)
    • onClose

      void onClose()