Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to subscribe to new user channel when logged in as another uaer #109

Closed
tensiuyan opened this issue Dec 17, 2018 · 2 comments
Closed
Assignees

Comments

@tensiuyan
Copy link
Contributor

No description provided.

@carmenlau
Copy link
Contributor

After merging commit #110, the usage example should be.

When user login

  • To subscribe user channel we should call as follow:

    skygearChat.pubsub.subscribeUserChannel();
    
  • Calling subscribe message will also help auto subscribe user channel

    skygearChat.subscribe(function(){...});
    

    or

    skygearChat.pubsub.subscribeMessage(function(){...});
    

When user logout

  • Should unsubscribe user channel
    skygearChat.pubsub.unsubscribeUserChannel();
    

@carmenlau
Copy link
Contributor

@tensiuyan Released v1.6.3 chat JS SDK

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

No branches or pull requests

2 participants