MegaBits / SIOSocket

Realtime iOS application framework (client) http://socket.io
MIT License
494 stars 80 forks source link

Specify transports #35

Closed brandonramirez closed 9 years ago

brandonramirez commented 9 years ago

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.