I'm trying to use socket.io with iOS and Android App, but there is some problem here. I'm asking if there is anyone who actually has solutions.
How can I send socket.io request from client (iOS, Android), I think there is socket.io libraries for iOS and Android and iOS lib has sendEvent/Message/JSON methods. However, I couldn't find a way to get the events at the sails. https://github.com/pkyeck/socket.IO-objc https://github.com/koush/AndroidAsync So is there any way that I can send socket.io event from client? So I can use it like
join: function (req, res) {
sails.sockets.join(req.socket, req.param('room'));
return res.ok();
},
Is there any way that I can know whether current socket connection is from client (ios/android) or web front end?
onConnect: function(session, socket) {
console.log(session);
console.log(socket);
},
when I connect socket with server, I need url to connect. I can add some params at the url. Is there any way that I can know which parameters I've used to connect with server?
Thanks.