I use the following JavaScript code to over-ride the default transports setting to only use websocket.
var socket = io('http://localhost:8080/user-data-sync', {
transports: [ 'websocket' ]
});
Is this possible with the SIOSocket client? This is a big deal for a project that I am working on where the client and server both support WebSockets, but there are technical reasons to avoid doing the handshake over long-polling.
I use the following JavaScript code to over-ride the default
transports
setting to only usewebsocket
.Is this possible with the SIOSocket client? This is a big deal for a project that I am working on where the client and server both support WebSockets, but there are technical reasons to avoid doing the handshake over long-polling.