101 Commits

Author SHA1 Message Date
Björn Ritzl
3331ec1a8d Update index.md 2025-06-04 07:57:48 +02:00
Kharkunov Eugene
c4d744ec49
Fixed websocket library linkage for all web targets (#56) 4.1.0 2025-05-05 11:10:36 +02:00
Brian
de6d493a1c
Update README.md (#54) 2024-09-09 17:11:52 +02:00
Alexey Gulev
65b9e38850
Merge pull request #52 from ekharkunov/emscripten-update
Use builtin Emscripten webscoket implementation for html5.
4.0.0
2024-04-17 17:32:19 +02:00
Kharkunov Eugene
a75c9f6c8f Use builtin Emscripten webscoket implementation for html5.
Update .gitignore.
2024-04-10 13:45:27 +03:00
Mathias Westerdahl
0ac6e3f9a3
Removed hard length limit for received messages (#51) 3.2.0 2024-02-28 13:50:57 +01:00
Björn Ritzl
6ec47ddc17 Delete DefoldWebsocket.symbols 2022-11-02 13:57:59 +01: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
3.1.0
2022-06-23 20:52:46 +02:00
Björn Ritzl
5c5736d8bc
Update README.md 2022-02-24 08:27:30 +01:00
Björn Ritzl
24dd20512b
Update websocket.gui_script 2022-02-17 12:40:47 +01:00
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