[英]How to connect C# with node.js via socket.io
i try to connect ac sharp application to node.js using SocketIoClientDotNet but it doesn't work take a look at my codes 我尝试使用SocketIoClientDotNet将ac Sharp应用程序连接到node.js,但是它不能正常工作,请看一下我的代码
using Quobject.SocketIoClientDotNet.Client;
var socket = IO.Socket("http://localhost:7000");
socket.On(Socket.EVENT_CONNECT, () =>
{
socket.Emit("hi");
});
socket.On("hi", (data) =>
{
Console.WriteLine(data);
socket.Disconnect();
});
Console.ReadLine()
And error is here 错误在这里
E:\xamp\htdocs\connexion>node test_server_2.js
info - socket.io started
info - unhandled socket.io url
I found! 我发现! i should upgrade socket.io from 0.9.16 to 1.3.5 and it works!
我应该将socket.io从0.9.16升级到1.3.5,它可以正常工作! thanks for all
谢谢大家
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.