Pubnub chat set up for rails application -
i hoping clear confusion have using pubnub rails application. hoping use pubnub chat layer among users. users may able chat via ios/android/web(rails) throughout application.
** pubnub gem used when creating auth_key user, , changing access pam. **
it seems me serverless setup , javascript sdk should used instead of ruby sdk? flow seems more be:
- user registered through devise
- after signed up, rails app server uses user's id (or other uuid) create auth_key, stores in db.
logic when creating 1:1 chat in rails application
- rails controller creates channel, set channel id,
- creates access 2 peers.
is rougly logic?
i not sure whether okay put pub_key , sub_key javascript client, seems can use pair create channels want.
yes, you're right insights , logic laid out here valid.
you don't need worry exposing pub , sub keys world because of access manager. secret key stored safely on server , you'll granting access particular channels server specific users based on auth_key. nobody can don't want. more information can take @ answer here.
Comments
Post a Comment