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 Summary

    Modifier and Type
    Method
    Description
    default void
    Called when an exception claused the call to abort.
    void
    onMessage(T message)
    Called when a single data message is received.
  • Method Details

    • 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.