Commit Graph

15 Commits

Author SHA1 Message Date
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