Skip to content

Releases: defold/extension-websocket

Updated to support Defold 1.8.0

17 Apr 15:33
65b9e38
Compare
Choose a tag to compare

CHANGE: This version works on Defold 1.8.0 and above

Removed limit on received message length

28 Feb 12:51
0ac6e3f
Compare
Choose a tag to compare
3.2.0

Removed hard length limit for received messages (#51)

Return connection close code in callback

23 Jun 18:54
24bb291
Compare
Choose a tag to compare

NEW: The callback will now include the close code received when the connection was closed.

local function websocket_callback(self, conn, data)
	if data.event == websocket.EVENT_DISCONNECTED then
		print(data.code)
		print(data.message)
	end
end

Removed old api from internal code

12 May 06:43
Compare
Choose a tag to compare

Make sure to always close the connection

12 Apr 20:46
0f841f1
Compare
Choose a tag to compare

FIX: The connection didn't shut down properly if closed during handshake.

Fix crash on Android due to thread name length being too long

18 Mar 19:42
97cca42
Compare
Choose a tag to compare

FIX: The connection thread name was longer than the allowed 16 characters.

Moved DNS lookup from main thread to reduce ANRs

17 Mar 11:59
cba11de
Compare
Choose a tag to compare
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

Include the specified port when connecting on HTML5

10 Mar 10:57
4e67c4d
Compare
Choose a tag to compare

FIX: The port was ignored when connecting to a URL in HTML5 builds

Switched to direct use of the JavaScript WebSocket API in HTML5 builds

18 Feb 21:19
efe9115
Compare
Choose a tag to compare

CHANGE: The extension now uses the Emscripten WebSockets API wrapper for HTML5 builds instead of POSIX TXP Socket emulation. This fixes previous issues with not being able to send text frames (messages).
FIX: Close socket connection when destroying the connection instead of returning it back to the connection pool (Thanks to @a-palagin)

Added response headers to error callback when handshake fails

04 Feb 07:50
Compare
Choose a tag to compare

Requires Defold 1.2.179 due to the header: dmsdk/dlib/http_client.h