public interface XhrTransport extends Transport, InfoReceiver
Transportthat uses HTTP requests to simulate a WebSocket interaction. The
connectmethod of the base
Transportinterface is used to receive messages from the server while the
executeSendRequest(URI, TextMessage)method here is used to send messages.
|Modifier and Type||Method and Description|
Execute a request to send the message to the server.
XhrTransportsupports both the "xhr_streaming" and "xhr" SockJS server transports. From a client perspective there is no implementation difference.
By default an
XhrTransport will be used with "xhr_streaming"
first and then with "xhr", if the streaming fails to connect. In some
cases it may be useful to suppress streaming so that only "xhr" is used.