Skip to content

v5.0.0

Compare
Choose a tag to compare
@FZambia FZambia released this 29 Sep 08:19
· 10 commits to master since this release
cc2db6d

In this release we adapt phpcent for Centrifugo v4:

  • generatePrivateChannelToken renamed to generateSubscriptionToken and now supports providing sub (user ID) claim - according to channel auth docs and v4 subscription token migration docs.
  • In generateConnectionToken method $userId argument is not optional anymore – it should be explicitly provided. You can still pass empty string explicitly for anonymous users.

Please note, that you can generate Centrifugo tokens using any JWT library for PHP.