github centrifugal/centrifuge-js 4.0.0
v4.0.0

latest releases: 5.2.2, 5.2.1, 5.2.0...
14 months ago

What's changed

This release changes the semantics of working with connection tokens described in Centrifugo v5 release post.

Previously, returning an empty token string from getToken callback resulted in client disconnection with unauthorized reason.

Now returning an empty string from getToken is a valid scenario which won't result into disconnect on the client side. It's still possible to disconnect client by throwing a special UnauthorizedError() error from getToken function.

And we are putting back setToken method to the SDK – so it's now possible to reset the token to be empty upon user logout.

Other changes

  • Add missing curly braces to node js README.md example by @MaximZemskov in #230
  • Schedule reconnect from disconnect function instead of transport onClose by @FZambia in #234

New Contributors

Full Changelog: 3.1.2...4.0.0

Don't miss a new centrifuge-js release

NewReleases is sending notifications on new releases.