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)
.
Modifier and Type | Method and Description |
---|---|
void |
setMessageTransportListener(TransportListener listener) |
void setMessageTransportListener(TransportListener listener)
listener
- the listener that handles unsolicited messages from the serverCopyright © 2008–2024 The CometD Project. All rights reserved.