Code sample socket.io on iisnode and azure
Problem
Can someone please post a working Code sample of a node.js app that uses socket.io running on iisnode and azure. It seems that IIS doens't play nicely with socket.io and any code sample I've found don't run on iisonde/azure...
When I try to connect vie Socketio to http://mysite:8080 azure returns a HTTP 500 error...
thanks
Problem courtesy of: AIDAN CASEY
Solution
socket.io does not work with IIS. You have to use Worker Role with node.js in order to use socket.io. Check out the following blog posts and pay attention to the worker role part:
- http://nodeblog.cloudapp.net/running-socket-io-on-windows-azure-web-and-worker-roles
- http://blog.ntotten.com/2011/09/27/running-processes-in-windows-azure/
Solution courtesy of: astaykov
Discussion
View additional discussion.