Package org.cometd.client.transport
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 bysetMessageTransportListener(TransportListener)
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setMessageTransportListener(TransportListener listener)
-
-
-
Method Detail
-
setMessageTransportListener
void setMessageTransportListener(TransportListener listener)
- Parameters:
listener
- the listener that handles unsolicited messages from the server
-
-