Code sample socket.io on iisnode and azure [closed]

自古美人都是妖i 提交于 2019-12-13 08:37:43

问题


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


回答1:


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/


来源:https://stackoverflow.com/questions/9146849/code-sample-socket-io-on-iisnode-and-azure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!