Rocher0724 / socket.io-unity

MIT License
107 stars 19 forks source link

Socket 4.4.0 , nothing happen with example script on Unity 2020.3.22f1 #18

Open shuskry opened 2 years ago

shuskry commented 2 years ago

HI everybody :)

I'm trying to use the example script In my project. The server work fine I think because I have the "Connected at 3000" message in terminal.

In the Unity side, I have only the "start" Debug log but nothing else ...

I have to have a "index.html" file in my directory ? or it's not necessary? Because I haven't for now.

I'm using the socket.io-unity v1.0.1 package install with unity.

Thanks for the help !

EDIT : It's work by downgrading the Socket.io module to 2.4.0

Vlakdo commented 2 years ago

Hello I would like to ask you how downgraded the version of socket.io to 2.4.0? thanks greetings.

AntoineFacq commented 2 years ago

Works perfectly with socket.io 2.4.0 (change version in package.json server side)

brennanzdas commented 2 years ago

Can y'all please put this fix in the readme. Maybe I missed it but it's super super important. ALL BOLD AND UNDERLINED.

b7gorsiya commented 2 years ago

Works perfectly with socket.io 2.4.0 (change version in package.json server side)

how did you change it..i did change the version on json file but still nothing happening .

AntoineFacq commented 2 years ago

Works perfectly with socket.io 2.4.0 (change version in package.json server side)

how did you change it..i did change the version on json file but still nothing happening .

Send the code you're using, it can also be part of your network configuration (are you trying on a localhost or distant host?)