Skip to content
This repository has been archived by the owner on Apr 4, 2020. It is now read-only.

document how to subscribe on private channel #10

Open
FZambia opened this issue Feb 24, 2017 · 1 comment
Open

document how to subscribe on private channel #10

FZambia opened this issue Feb 24, 2017 · 1 comment

Comments

@FZambia
Copy link
Member

FZambia commented Feb 24, 2017

As far as I can see there are 2 methods one and two in subscription object so it's possible to set private sign. But to create sign users also need to know client ID of current connection.

@SammyVimes could you document how to do private channel subscription?

@FZambia
Copy link
Member Author

FZambia commented Feb 24, 2017

Just looked through code and it seems that centrifuge-android can't be used for private channel subscriptions yet.

Also I see that here we set client for User - what's its meaning?

Then here we pass clientId to constructor arguments - this is not necessary as client id will be issued by Centrifugo after successful connect. You already do this right but to generate private sign users need to know that client ID so it needs getter method - I can't find it.

Every time client reconnects client should resubscribe on channels. This means that every time it must set new sign in subscription request based on new client ID received from Centrifugo. In other clients we solve this providing callback mechanism: for example see how it was added in centrifuge-python: centrifugal/centrifuge-python@1b0f323

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant