Added status code to callback when the server closes the connection (#45)

* Added WebSocket close code to callback

Also added message and code for HTML5

* Unify disconnect handling for wslay and html5
This commit is contained in:
Björn Ritzl
2022-06-23 20:52:46 +02:00
committed by GitHub
parent 5c5736d8bc
commit 24bb291c72
7 changed files with 40 additions and 25 deletions

View File

@@ -53,3 +53,7 @@ For command line debugging, there's
This extension makes use of the C library WSlay by @tatsuhiro-t:
* https://github.com/tatsuhiro-t/wslay
The test server used by the example:
* https://www.lob.com/blog/websocket-org-is-down-here-is-an-alternative