Skip to content

Difference in disconnect behaviour between html5 and desktop #48

@ainonovo

Description

@ainonovo

On html 5 i have this problem.

run in editor and (android and windows)

DEBUG:SCRIPT: callback Connected: userdata: 0x0a0be8d0
DEBUG:SCRIPT: callback Receiving: userdata: 0x0a0be8d0 {"status":"success","result":"auth"}

i manual destroy server

ERROR:WEBSOCKET: Websocket poll error: WSLAY_ERR_CALLBACK_FAILURE
DEBUG:SCRIPT: callback Error: 'Websocket closing for 192.168.1.77 (WSLAY_ERR_CALLBACK_FAILURE)'
DEBUG:SCRIPT: callback Disonnected: userdata: 0x0a0be8d0

all works fine, callback Error and callback Disonnected - fire as well

but if i run in browser i have this

DEBUG:SCRIPT: callback Connected: userdata: 0x15c57d8
DEBUG:SCRIPT: callback Receiving: userdata: 0x15c57d8 {"status":"success","result":"auth"}

i manual destroy server

DEBUG:SCRIPT: callback Disonnected: userdata: 0x15c57d8

where my callback Error - his not fire (((

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions