Björn Ritzl
63cb5f8de6
Update websocket.gui_script
2022-02-17 12:40:15 +01:00
Björn Ritzl
ace3242158
Update index.md
2022-01-03 14:27:42 +01:00
Björn Ritzl
4cf11c3048
Added info about websocket configuration
2021-09-14 13:30:46 +02:00
Björn Ritzl
ecaac30238
Update README.md
2021-05-28 11:47:32 +02:00
Björn Ritzl
8fd283385f
Merge branch 'Issue-38-crash-on-connect'
2021-05-28 11:37:23 +02:00
Björn Ritzl
dfc94aa94a
Badge
2021-05-28 11:36:58 +02:00
JCash
d5237bbee1
Remove dold include dns.h
3.0.0
2021-05-01 10:13:36 +02:00
JCash
daffff4c06
Updated dmConnectionPool::Dial call for new beta release
2021-04-30 10:58:31 +02:00
VitaliiTihobrazov-Melsoft
0f841f16af
fix: the connection must be closed in other states ( #41 )
2.2.3
2021-04-12 22:45:09 +02:00
Björn Ritzl
97cca427d7
Reduced thread name length ( #39 )
...
pthread_setname_np() restricts thread name length to 16 characters.
2.2.2
2021-03-18 20:41:03 +01:00
Björn Ritzl
bc56b02e5b
Reduced thread name length
...
pthread_setname_np() restricts thread name length to 16 characters.
2021-03-18 18:31:57 +01: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
2.2.1
2021-03-17 12:59:01 +01:00
Björn Ritzl
4e67c4dfaa
Add the port to the url for html5 builds ( #35 )
...
Fixes #34
2.2.0
2021-03-10 11:56:26 +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
2.1.0
2021-02-18 22:13:53 +01:00
Alexander Palagin
b3afb9a276
close socket when destroying websocket connection instead of returning it back to connection pool ( #32 )
2021-02-10 08:49:23 +01:00
Alexander Palagin
7346f142fa
replace dmStriCmp with dmStrCaseCmp ( #31 )
2021-02-10 07:50:09 +01:00
Alexander Palagin
165b7333dc
update exmaple of websocket_callback in documentation ( #30 )
2021-02-10 07:49:04 +01:00
JCash
bd4e5c0b35
Compiler warning fixes
2.0.0
2021-02-04 08:49:00 +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 )
1.6.0
2021-01-25 11:59:17 +01:00
Björn Ritzl
f988413a74
Fix logging in example when error is nil
2021-01-14 09:49:08 +01:00
JCash
73b236b249
Added ci build status badge to README.md
2020-12-24 14:22:07 +01:00
JCash
636a11daa3
Added ci build status badge to README.md
2020-12-24 14:20:08 +01:00
JCash
0f147ef180
Added auth/email to resolve step
2020-12-24 12:48:53 +01:00
Mathias Westerdahl
3cd0328c2a
Ci build script ( #27 )
...
* Added bob.yml
* Added all platforms
* Added macOS builder
* There's no jre on macOS
* jarsigner exists in the jdk
* Added pull_request_target
* Added cron job
2020-12-24 11:56:34 +01:00
Björn Ritzl
f5aa57452f
Merge pull request #26 from defold/Issue-25-crash-in-callback
...
Destroy connections when finalizing the extension
1.5.2
2020-12-22 12:21:20 +01:00
Björn Ritzl
7e89b8a685
Destroy connections when finalizing the extension
2020-12-22 12:19:12 +01:00
Mathias Westerdahl
ba7454a431
Merge pull request #24 from defold/issue-22-skip-protocol-by-default
...
Issue 22: Don't send Sec-WebSocket-Protocol unless specified
1.5.1
2020-11-10 08:42:30 +01:00
JCash
b93a91c9b8
Issue 22: Don't send Sec-WebSocket-Protocol unless specified
2020-11-09 19:03:27 +01:00
Mathias Westerdahl
0bf63cbdf8
Added credit and link to wslay
2020-11-01 09:28:27 +01:00
Mathias Westerdahl
8a9dc759a4
Merge pull request #21 from defold/issue-18-error-message-fix
...
Issue 18: Documentation fix
1.5.0
2020-10-31 15:48:47 +01:00
Mathias Westerdahl
70afde4cfa
Merge pull request #20 from defold/issue-17-path-fix
...
Issue 17: Fixed path argument in http handshake
2020-10-31 15:48:21 +01:00
Mathias Westerdahl
ed6d131470
Merge pull request #19 from defold/issue-16-conneciton-protocol
...
Issue 16: Added protocol as a connection parameter
2020-10-31 15:47:58 +01:00
JCash
2c9c0b74f1
Issue 18: Documentation fix
2020-10-31 10:55:36 +01:00
JCash
8450a88640
Issue 17: Fixed path argument in http handshake
2020-10-31 10:40:21 +01:00
JCash
3636ea73db
added documentation
2020-10-31 10:18:50 +01:00
JCash
1cc1d802b3
Issue 16: Added protocol as a connection parameter
2020-10-31 10:14:44 +01:00
JCash
94bcc82f25
cleanup
2020-10-18 09:42:53 +02:00
JCash
d62a53cbcc
Doc fix
2020-10-18 09:42:40 +02:00
Mathias Westerdahl
ea2fe97943
Merge pull request #15 from defold/issue-5-custom-headers
...
Issue 5: Added support for custom headers
1.4.0
2020-10-17 14:02:21 +02:00
Mathias Westerdahl
268e9bf472
Merge pull request #14 from defold/issue-13-connect-timeout
...
Issue 13: Added support for connect sequence timeout
2020-10-17 12:30:41 +02:00
Mathias Westerdahl
5ee358cbba
Merge pull request #12 from defold/issue-11-support-text-frames
...
Issue 11: Added support for both binary and text frames
2020-10-17 12:29:45 +02:00
JCash
78d527d3a8
Issue 5: Added support for custom headers
2020-10-17 12:26:20 +02:00
JCash
b54e3e07ad
review fix
2020-10-17 11:47:23 +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
Mathias Westerdahl
833477a134
Added another tcpdump example
2020-10-15 15:26:23 +02:00
Mathias Westerdahl
15a589585a
Added more debugging tools to README
2020-10-15 11:35:23 +02:00
Mathias Westerdahl
3fe8fbc0ff
Added external debugging tools to README
2020-10-15 10:39:50 +02:00
JCash
ba2b8e4a69
Updated hex string logging to use our internal logging functions
...
This will keep the output in-order
1.3.0
2020-10-13 09:33:38 +02:00