接口 XhrTransport

    • 方法详细资料

      • isXhrStreamingDisabled

        boolean isXhrStreamingDisabled()
        An XhrTransport supports 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.

      • executeSendRequest

        void executeSendRequest​(URI transportUrl,
                                HttpHeaders headers,
                                TextMessage message)
        Execute a request to send the message to the server.

        Note that as of 4.2 this method accepts a headers parameter.

        参数:
        transportUrl - the URL for sending messages.
        message - the message to send