Hi all, very new to Sails, Sockets and this board, so excuse me if my question has been answered elsewhere (I did search). With Sails being socket.io-enabled, when would I use sockets over something like Ajax? For example, I'm currently building an application that uses React.js for the front-end and Sails for everything else. Normally, in a single page application, if I wanted to authenticate against an endpoint, I would use Ajax to do so. Can I effectively use something like
io.socket.post(url, [data], [cb]) in Sails to accomplish the same thing? Are there pros/cons to each approach?
Thanks in advance,
James