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:

  1. user registered through devise
  2. 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

  1. rails controller creates channel, set channel id,
  2. 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

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -