Skip to content

Releases: colyseus/colyseus-defold

0.11.6

04 Oct 04:39
Compare
Choose a tag to compare
  • Fixes decoding MapSchema (by preserving insertion order)
  • New methods of MapSchema:
    • map:keys()
    • map:values()
    • map:length()
    • map:each(function(key, vaue)) ... end)

0.11.5

03 Oct 04:05
Compare
Choose a tag to compare
  • matchmaking and auth callbacks return "offline" error if server is offline
  • uses config.connect_timeout (#7) for both HTTP and WS requests.

0.11.4

26 Sep 15:02
Compare
Choose a tag to compare

Allow to perform custom-made authenticated requests:

local query_params = {}
local callback = function(err, response)
  -- ...
end

local post_body = "" -- optional
local custom_headers = {} -- optional

client.auth:request("POST", "/route", query_params, callback, post_body, custom_headers)
client.auth:request("POST", "/route", query_params, callback) -- omit optional params

0.11.3

21 Sep 14:45
Compare
Choose a tag to compare
  • Fixes client:join_by_id() (#25)

0.11.2

20 Sep 20:30
Compare
Choose a tag to compare
  • Fixes client:get_available_rooms() method (#24)

0.11.1

12 Sep 18:35
Compare
Choose a tag to compare
  • Success callback is optional for auth/friend methods

Example

client.auth:decline_friend_request(userId) -- no callback provided

0.11.0

23 Aug 02:35
Compare
Choose a tag to compare

Version 0.11 is finally here! 🎉
See migration guide: https://docs.colyseus.io/migrating/0.11/

0.10.5

23 Aug 02:04
7bf7219
Compare
Choose a tag to compare

The latest stable version before 0.11

0.10.4

22 Jun 02:58
Compare
Choose a tag to compare

Fixes support for arrays and maps of primitive types

0.10.3

25 May 21:36
Compare
Choose a tag to compare

Support for new experimental @colyseus/social API.
See documentation: https://docs.colyseus.io/authentication/

Now available in the client:

  • client.auth:login()
  • client.auth:get_friends()
  • client.auth:get_online_friends()
  • client.auth:get_friend_requests()
  • client.auth:send_friend_request(user_id)
  • client.auth:accept_friend_request(user_id)
  • client.auth:decline_friend_request(user_id)
  • client.auth:send_friend_request(user_id)
  • client.auth:block_user(user_id)
  • client.auth:unblock_user(user_id)
  • client.push:register()