Make channel tokens be compatible with Centrifugo v4+#24
Make channel tokens be compatible with Centrifugo v4+#24FZambia merged 1 commit intocentrifugal:masterfrom
Conversation
|
ok, I see that there are issues further (e.g. publishing doesn't work), closing |
|
@trushkevich hello! Actually PR seems totally correct - token generator should be updated to set Regarding publishing you mentioned – what error you have? I think |
it looks like I just didn't notice that endpoint url should now include reopened |
|
Many thanks!! Merging, will release a bit later - currently vacationing 🌴 |
Hello. I have discovered that if rubycent version 3.0.0 is being used against Centrifugo server versions 4+ (tested with centrifugo server 4.1.5 and 5.4.6, and centrifuge v5.2.2 nodejs module) then channel tokens issued with the help of
clientparameter do not allow subscribing to channels. Debug log in centrifugo server in this case looks like this:After applying changes in this PR (so basically you just need to use
subinstead ofclientin payload sent toJWT.encode, just like for connection tokens) I can successfully subscribe to channels:If everything is ok and I'm not missing anything, could you please review, merge the PR and release a new version to rubygems ?