Skip to content

Releases: britzl/defnet

DefNet 3.3

06 Dec 10:35
Compare
Choose a tag to compare

NEW: Added dependency to defold-luasocket project and removed manually copied files from LuaSocket.

DefNet 3.2.3

26 Sep 08:30
Compare
Choose a tag to compare

FIX: The tcp_server did sometimes fail to assert even though the socket was created. Changed the way the assert is done.

DefNet 3.2.2

28 Jul 09:13
Compare
Choose a tag to compare

FIX: Only keep reading from client socket while connected

DefNet 3.2.1

28 Jul 08:21
Compare
Choose a tag to compare

CHANGE: The tcp_send_queue will send all data in the queue each update() instead of only the first data in the queue
CHANGE: The tcp_client will read lines until timeout instead of only a single line

DefNet 3.2

27 Jul 08:16
Compare
Choose a tag to compare

tcp_send_queue.lua now returns any error message while send
tcp_send_queue.lua handles partial sends better
tcp_client.lua now has a on_disconnect callback

DefNet 3.1

03 Apr 14:07
Compare
Choose a tag to compare

Removed coxpcall as the current use of pcall and coroutines doesn't seem to be a problem.

DefNet 3.0

15 Mar 22:12
Compare
Choose a tag to compare

NEW: Added support for chunked transfer encoding in the HTTP Server.

CHANGE: The routing functions in the HTTP server will now receive any matches as an indexed array instead of unpacked to individual arguments.
CHANGE: The routing functions in the HTTP server can will now receive a stream callback function as it's second argument. This function can be used instead of returning a string.
CHANGE: The routing functions in the HTTP server can now return a function instead of a string. If a function is returned it will be called repeatedly over time to get more data to send as a response. This is typically used for chunked transfers.

DefNet 2.1.1

14 Mar 07:08
Compare
Choose a tag to compare

Reduced default TCP chunk size

DefNet 2.1

13 Mar 11:35
Compare
Choose a tag to compare

Large TCP payloads will now be sent in multiple TCP send calls. The maximum TCP send chunk size is configurable per TCP send queue.

DefNet 2.0

21 Feb 12:46
Compare
Choose a tag to compare

NEW: http_server now has support for Access-Control-Allow-Origin response header. The default value is Access-Control-Allow-Origin: *. The value is controlled via the public variable access_control on the http server instance. Set it to nil to disable the response header.

BREAKING CHANGE: http_server.html(), http_server.json() and http_server.file() response creator functions have been moved to the http server instance to allow creation of a response with all headers set properly