Just curious why the simple web socket code below isn't functioning?
io.socket.on('user', function(event){
console.log("RECEIVED EVENT:",event);
})
I have included sails.io.js in my index file and the above code is located in a test.js file under assets/js directory. I anticipated that every time I send a request to the user api, a message would be logged. And yes, the user api does indeed exist. I reviewed the documentation but am unable to identify where I may have made an error.