Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Client not connecting #3

Open
givowo opened this issue Dec 9, 2020 · 5 comments
Open

Client not connecting #3

givowo opened this issue Dec 9, 2020 · 5 comments

Comments

@givowo
Copy link

givowo commented Dec 9, 2020

I have a js socket.io server running on port 3000 and im unable to connect to it. Here is the code im using:

client = new SocketIOClient(new SocketIOClientOption(EngineIOScheme.http, "localhost", 3000));
client.On(SocketIOEvent.CONNECTION, () =>
{
   Console.WriteLine("Good");
});
client.Connect();

i have logs in my js code that lets me know when someone is connected. I can see the logs when connecting with a browser, but not with this

@givowo givowo changed the title Client not connection Client not connecting Dec 10, 2020
@givowo
Copy link
Author

givowo commented Dec 10, 2020

Im using socket.io 3.0.0 currently, ill install 2.3 to see if that works

@givowo
Copy link
Author

givowo commented Dec 10, 2020

Update: i was able to get the example working perfectly, so ill just use it as a base and copy over my code.

@IliasP91
Copy link

2.4v JS client also works fine

@massimo-bortolamei-hegias

hey i have the very same problem! server in node.js with socket.io version 4.1.2, and I cant get this client-example to connect to it.
How did you solve? I hope not by downgrading, since I'm basically using this package because I need a 4.x client in c#

@ralphskie
Copy link

Confirming this works.

Server : C#
Client : nodejs client should be 2.4v below (3.1.3 does not work)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants