Interface MessageListener<T extends com.google.protobuf.Message>

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

    @FunctionalInterface
    public interface MessageListener<T extends com.google.protobuf.Message>
    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.