defold-websocket icon indicating copy to clipboard operation
defold-websocket copied to clipboard

on_disconnected event, not being called

Open GreenArrow18 opened this issue 7 years ago • 1 comments
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:

  1. On Windows, no disconnection event is being captured in the Defold editor. The html5 build is ok.
  2. On Mac, both the Defold editor and html5 builds are ok.

GreenArrow18 avatar Nov 25 '18 08:11 GreenArrow18

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?

britzl avatar Jan 07 '19 06:01 britzl