0

i try to connect a c sharp application to node.js using SocketIoClientDotNet but it doesn't work take a look at my codes

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
2
  • are you on the latest versions of socket.io + SocketIoClientDotNet ? Commented Jun 13, 2015 at 9:02
  • my socket.io version is 0.9.16 and SocketioClientDotNet version is 0.9.10 do i upgrade socket.io ? Commented Jun 14, 2015 at 11:14

1 Answer 1

1

I found! i should upgrade socket.io from 0.9.16 to 1.3.5 and it works! thanks for all

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.