Kharkunov Eugene
a75c9f6c8f
Use builtin Emscripten webscoket implementation for html5.
...
Update .gitignore.
2024-04-10 13:45:27 +03:00
Björn Ritzl
24bb291c72
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
2022-06-23 20:52:46 +02:00
JCash
d5237bbee1
Remove dold include dns.h
2021-05-01 10:13:36 +02:00
Björn Ritzl
cba11de5f1
Run DNS lookup in a separate thread ( #37 )
...
* Moved connection pool dial to a thread
* Make sure to join the thread when done
* Cleanup in AppInitialize. Early exit if pool creation failed.
* Only check connection timeout for emscripten
2021-03-17 12:59:01 +01:00
Björn Ritzl
efe9115413
Use the Emscripten websocket library instead of POSIX socket emulation ( #33 )
...
* Switched to direct javascript websockets
* Skip the null termination on text messages when pushing
* Moved Emscripten callbacks and some other PR improvements
* STATE_CONNECT -> STATE_CREATE
* Changed disconnect logic
* Review feedback
2021-02-18 22:13:53 +01:00
Alexander Palagin
7346f142fa
replace dmStriCmp with dmStrCaseCmp ( #31 )
2021-02-10 07:50:09 +01:00
Alexander Palagin
ac230a6278
Handshake response object if handshake failed ( #29 )
...
* added handshake response object, so if error occurs on websocket handhsake stage, server's response can be reachable for further decisions
* fixed typo; removed c++11 style constructors
2021-02-04 08:30:40 +01:00
Alexander Palagin
39abd7cdea
always call lua callback when connection goes to STATE_DISCONNECTED ( #28 )
2021-01-25 11:59:17 +01:00
JCash
1cc1d802b3
Issue 16: Added protocol as a connection parameter
2020-10-31 10:14:44 +01:00
JCash
78d527d3a8
Issue 5: Added support for custom headers
2020-10-17 12:26:20 +02:00
JCash
e105702c79
Issue 13: Added support for connect sequence timeout
...
Decreased the select timeout when reading headers
Don't call callback with DISCONNECTED if the connection was never connected
2020-10-17 11:40:53 +02:00
JCash
9d1ace0a82
Issue 11: Added support for both binary and text frames
2020-10-17 10:28:19 +02:00
JCash
bd8569f49a
Issue 8: Handle the websocket close event
2020-09-27 16:54:22 +02:00
JCash
832a156395
Issue 6: Handle multiple messages per frame
2020-09-26 12:51:43 +02:00
JCash
bd9e777b99
Windows compile fixes
2020-09-03 17:28:10 +02:00
JCash
26a9ef0143
Code cleanup
2020-09-02 16:54:37 +02:00
JCash
5de32250c3
Websocket now supports html5 as well
2020-09-02 10:44:02 +02:00
JCash
1e6c534609
Added support for SSL
2020-08-28 12:43:50 +02:00
JCash
0e589290ed
some restructuring of the code
2020-08-25 16:50:33 +02:00