Interface MessageListener<T extends>

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    public interface MessageListener<T extends>
    A listener for handling data messages received from a WebSocket call.
    • Method Detail

      • onMessage

        void onMessage​(T message)
        Called when a single data message is received. Implementations should return quickly.
      • onError

        default void onError​(Throwable t)
        Called when an exception claused the call to abort.