Releases: centrifugal/phpcent
Releases · centrifugal/phpcent
v6.0.1
What's Changed
- Fix for info() failing with the new HTTP API format. Added test. by @SteveTherrien in #65
Full Changelog: v6.0.0...v6.0.1
v6.0.0
What's Changed
- Use Centrifugo v5 HTTP API format by @AntistressStore in #63. Centrifugo v5 introduced a new format for server HTTP API, this change moves the library to use new API format. If you are using Centrifugo v5 – then the update to phpcent v6.0.0 should be smooth without additional changes in the code (since API format changes are all internal implementation detail). If you have Centrifugo v4 – then you can't use phpcent v6 - in this case stay with phpcent v5.x.
New Contributors
- @AntistressStore made their first contribution in #63
Full Changelog: v5.1.0...v6.0.0
v5.1.0
v5.0.0
In this release we adapt phpcent for Centrifugo v4:
generatePrivateChannelToken
renamed togenerateSubscriptionToken
and now supports providingsub
(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.