Interface MessageClientTransport

All Known Implementing Classes:
AbstractWebSocketTransport, JettyWebSocketTransport, OkHttpWebSocketTransport, WebSocketTransport

public interface MessageClientTransport

Classes implementing MessageClientTransport indicate that the transport they provide receives messages without the need of a previous request, like it happens in HTTP long poll.

Websocket or SPDY allow unsolicited messages to arrive to the client, and this must be processed by a TransportListener that has not been passed during a request, but has instead been provided at startup by setMessageTransportListener(TransportListener).

  • Method Details

    • setMessageTransportListener

      void setMessageTransportListener(TransportListener listener)
      listener - the listener that handles unsolicited messages from the server