hi
i would like to ask if we should close the websocket in the WebSocket_Disconnected Event?
or is it not important?
taking a closer look at the ServerExamples i don't see anywhere a ws.close command but from some articles i do read that we should close the connection.
i would like to ask if we should close the websocket in the WebSocket_Disconnected Event?
B4X:
Private Sub WebSocket_Disconnected
ws.Close
End Sub
or is it not important?
taking a closer look at the ServerExamples i don't see anywhere a ws.close command but from some articles i do read that we should close the connection.
Closing WebSocket correctly (HTML5, Javascript)
I am playing around with HTML5 WebSockets. I was wondering, how do I close the connection gracefully? Like, what happens if user refreshes the page, or just closes the browser? There is a weird be...
stackoverflow.com