0

I want to use socket.io instead of websocket with sails.js framework.

I know I saw something about that two days ago but I don't remember where...

Do you know where can I choose between both? Because my client is WP8/Netduino and can only use socket.io protocol, not the websocket.

Thank you.

Vadorequest
  • 16,593
  • 24
  • 118
  • 215
  • Vadorequest, I'm about to publish a screencast going over how to use socket.io in sails. In the meantime I have this screencasts which is a prequel to the upcoming episode http://irlnathan.github.io/sailscasts/blog/2013/09/06/building-a-sails-application-ep18-understanding-web-sockets-and-socket-io-including-room-creation-and-management/ – JohnGalt Oct 02 '13 at 21:43

1 Answers1

2

Sails.js uses socket.io, which, in it's turn, uses WebSocket as one of it's preferred transports, if it's available.

ataman
  • 2,644
  • 17
  • 22
  • It's what I thought, about sails.js. Do you know how can I be sure to use socket.io? But honnestly I don't know why I can't receive anything... http://stackoverflow.com/questions/19103993/connect-wp8-vm-with-node-js-server-using-tcp – Vadorequest Oct 02 '13 at 19:28