在iisnode和蔚蓝code样品socket.io [英] Code sample socket.io on iisnode and azure

查看:241
本文介绍了在iisnode和蔚蓝code样品socket.io的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以请张贴使用socket.io上iisnode和Azure上运行一个应用程序的Node.js的工作code样品。
看来,IIS好好尝试一下与socket.io任何code样品,我发现不上iisonde / Azure上运行发挥很好...

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...

当我尝试连接VIE socketio到的http:// mysite的:8080 蔚蓝返回一个HTTP 500错误...

When I try to connect vie socketio to http://mysite:8080 azure returns a HTTP 500 error...

感谢

推荐答案

socket.io不使用IIS。您必须使用与node.js的工作者角色才能使用socket.io。看看下面的博客文章,并注意工人角色的一部分:

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:

这篇关于在iisnode和蔚蓝code样品socket.io的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆