Before I would just
<script>
var socket = io.connect(URL);
socket.emit("hello", {});
</script>
Using Sails.io.js, I tried io.sails.emit("myevent", jsonData)
... but can't do that:
io.socket.emit is not a function
So I do you actually emit a message to the websocket (from the browser) to the room you have joined?
What am I missing?
http://sailsjs.org/documentation/reference/web-sockets/socket-client