Skip to content

Releases: colyseus/colyseus-defold

0.15.10

15 Jun 03:34
Compare
Choose a tag to compare
  • MapSchema: delete_by_index fix (#57, thanks @baochungit for reporting)

0.15.9

23 May 18:31
Compare
Choose a tag to compare
  • Fix ArraySchema#delete_by_index issue d10df2c
  • Fix detecting "offline" network error #56 (Thanks @baochungit for reporting)

0.15.8

31 Jan 16:31
Compare
Choose a tag to compare

Fixes room:on("leave", fn) not being triggered (#51, thanks @baochungit for reporting)

0.15.7

24 Jan 15:26
Compare
Choose a tag to compare

Add :to_raw() method on all schema instances. (#50, thanks @bedryck)

0.15.6

23 Jan 00:49
Compare
Choose a tag to compare

fixes forwarding Bearer token from HTTP module

0.15.5

16 Jan 17:24
Compare
Choose a tag to compare
fixes double json.encode on matchmake requests

0.15.4

16 Jan 15:03
0148395
Compare
Choose a tag to compare

New Auth API (https://github.com/colyseus/colyseus/releases/tag/0.15.15)

Define callback for Auth state change:

client.auth:on_change(function (auth_data)
	if auth_data.user ~= null then
		-- logged in!
	else
		-- logged out!
	end
end);

Methods:

  • client.auth:get_user_data()
  • client.auth:register_with_email_and_password()
  • client.auth:sign_in_with_email_and_password()
  • client.auth:sign_in_anonymously()
  • client.auth:send_password_reset_email()
  • client.auth:sign_out()
  • (❌ OAuth not yet implemented) client.auth:sign_in_with_provider()

Example

client.auth.sign_in_with_email_and_password("endel@colyseus.io", "123456", function(err, auth_data)
    if err ~= nil then
      -- err.status
      -- err.message
    else
      print(auth_data.token) -- token
      pprint(auth_data.user) -- user data
    end
end)

0.15.3

07 Oct 20:30
Compare
Choose a tag to compare

Fixes #47 - Thank you @tufcode for reporting

0.15.2

19 Jul 17:31
Compare
Choose a tag to compare

fixes using port 80/443 based on URL scheme

0.15.1

19 Jun 17:46
Compare
Choose a tag to compare
  • :listen() now triggers immediately, unless false is provided as last argument (d5672b7)