defold / defold/extension-websocket

Problem disconnecting on final

Open
#47 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C
Stars
50
Forks
17
Avg merge
20h 9m
Merged PRs (30d)
1

Description

Reported by @ainonovo, initially here https://github.com/defold/extension-websocket/issues/48

```
local function websocket_disconnect(self)
if self.ws_con ~= nil then
pprint(self.ws_con)
websocket.disconnect(self.ws_con)
end
end

function final(self)
websocket_disconnect(self)
end
```
in console

```
userdata: 0x0a109ad0
ERROR:WEBSOCKET: Failed to setup callback
```

this code in a script file. Maybe I'm disconnecting at the wrong time - but I need to 100% disconnect correctly - otherwise I can't reconnect

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.