Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Code sample socket.io on iisnode and azure

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.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

Code sample socket.io on iisnode and azure

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×