-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Socket.io transports for Android/iOS #308
Comments
Hey Hurreman, thanks for bringing this up. The best thing to do is to call That said, this is something that I'd like to see pulled into the core as a built-in configuration, just like we've done with all the Express options. Hopefully, that helps for now. I'd love to see an example when you get this up and running! |
Hey Mike, I've given this a go but from what I can tell, io hasn't yet been declared when the bootstrap is called, resulting in an "io is not defined" exception. Am I missing something? |
Nope you're right on target-- it's tricky because we want the bootstrap to fire before the server starts, so you can get all your app setup done first, but then we don't have |
OK- I'm pushing support for module.exports.io = {
transports: [
'websocket'
, 'flashsocket'
, 'htmlfile'
, 'xhr-polling'
, 'jsonp-polling'
]
}; |
Closed by 6d63c12 For now, to get it, you can install using:
|
PS- thanks for reminding me about this! |
Is there a way to setup Socket.IO from a controller? I tried req.socket.set('transports' [...]) but without luck, and can't find anything in the wiki/docs.
Has anyone gotten mobile support for Socket.IO to work?
The text was updated successfully, but these errors were encountered: