Skip to content

Releases: colyseus/colyseus-unity-sdk

0.16.1

18 Feb 13:05
Compare
Choose a tag to compare

Remove unused imports

0.16.0

17 Feb 13:28
Compare
Choose a tag to compare

0.15.12

27 Aug 19:13
Compare
Choose a tag to compare

0.15.11

03 Jul 17:09
Compare
Choose a tag to compare

0.15.10

03 Jul 14:38
Compare
Choose a tag to compare

0.15.9

25 Mar 17:30
Compare
Choose a tag to compare

Fixes compilation error for some Unity versions (15d820c)

-            var splittedPath = pathWithQueryString.Split("?");
+            var splittedPath = pathWithQueryString.Split('?');

0.15.8

16 Jan 14:56
Compare
Choose a tag to compare
  • Add missing client.Auth.GetUserData() method.
  • First OnChange() call triggers GetUserData() if Token is present.

0.15.7

10 Jan 18:04
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.OnChange((Colyseus.AuthData<User> authData) =>
{
	if (authData.user != null)
	{
		// Logged in!
	}
	else
	{
		// Logged out!
	}
});

Methods:

  • client.Auth.RegisterWithEmailAndPassword()
  • client.Auth.SignInWithEmailAndPassword()
  • client.Auth.SignInAnonymously()
  • client.Auth.SendResetPasswordEmail()
  • client.Auth.SignOut()
  • (❌ OAuth not yet implemented) client.Auth.SignInWithProvider()

Example

class User
{
	public int id;
	public string email;
	public string name;
}

// ...

try
{
	var response = await client.Auth.SignInWithEmailAndPassword<User>("[email protected]", "123456");
	Debug.Log(response.user.id);
	Debug.Log(response.user.email);
	Debug.Log(response.user.name);
}
catch (Colyseus.HttpException e)
{
	// e.Message
	// e.StatusCode
}

0.15.5

24 Sep 03:29
Compare
Choose a tag to compare
bump 0.15.5

0.15.4

24 Jun 21:04
Compare
Choose a tag to compare