Rocher0724 / socket.io-unity

MIT License
107 stars 19 forks source link

there isn't stable connection #4

Open sepehrEslami81 opened 3 years ago

sepehrEslami81 commented 3 years ago

hey guys. we have some problem in connection, this package dosn't have stable connection and after a few minutes disconnect and connect to server. is there any one who can help me with this issue???

thnaks.

Rocher0724 commented 3 years ago

hi sepehrEslami81

At least I'm not disconnected from the 'NodeJS server + unity version' I use.

Could you tell me the server spec and Unity version you use? I'm going to experiment with unstable connections.

EchinFer commented 3 years ago

We have the same problem in connection. "EVENT_DISCONNECT: ping timeout", the test example also has the same problem. Unity 2020.1.8f1. Node js 2.3.0 Thanks

EchinFer commented 3 years ago

image

image

ArkinSolomon commented 3 years ago

@EchinFer did you fix your problems?

Rocher0724 commented 3 years ago

image

the image, server is [ var server = http.createServer(app); ]

Sorry, I'm a little late.

Recently, I used to use sockets a lot through nodejs + express.

I had the same problem and now I changed the 'ping timeout' setting on the server.

I think It's not the perfect solution. I'm engineering a server these days. I'm not sure if it's the problem that can be solved perfectly.

biopowder commented 3 years ago

@Rocher0724 , unfortunately for me those opts don't resolve connection-disconnection issue.

Anyone solved this issue?