defold-websocket
defold-websocket copied to clipboard
on_disconnected event, not being called
trafficstars
Expected results: if you are successfully connected with a server, and you forcefully shut down the server, an on_disconnected event should be captured in the client, so the program can take appropriate actions
What happens:
- On Windows, no disconnection event is being captured in the Defold editor. The html5 build is ok.
- On Mac, both the Defold editor and html5 builds are ok.
Not sure what can be done to solve this. All platforms use their own native socket implementation in the engine and the Windows version or the Windows OS doesn't detect the disconnect properly. I guess you get an error though when trying to send data?