Socket Not Starting when closed and initialized again
Hey,
I was working on using sockets for a simple game with dual player support (on same PC). Everything works fine for the first time. But the scenario is if both players leave the room and the sockets are closed and restarted. So we do WebSocket.Close() and Dispose() then wait for 3500ms before creating a new config with certificates and the start the server. Setup goes fine, but WebSocketServer.start fails it returns the boolean as false. We tried recalling the methods 10 times with 350ms break but no success. Since it doesn't log or throw exception. I am not sure why this is happening. Also the port usage isn't the issue. Port is free when closed.
It works in few PC's but in few lowerend PC's it fails.
Any leads is greatly appreciated.
I met the same question, how do you solve it ?