java - Pubnub real-time communication -


i new socket communication concept , have few basic questions.

we have server serving multiple clients web,mobile etc.. want implement real time changes in web app (web app consumer only)

lets each user has it's own private channel , channel name uuid of user.

how server side can keep track users connected channel?

in our case there no meaning send message channel no device listning to.

  • i saw presence feature not sure way seems more appropriate many users can connect single channel , not 1-1

basically when server handling somekind of user related operation need way know if listning user channel.

how can done pubnub?

lets sending message channel no 1 listen/suscribed to

  1. if no 1 consuming msg pubnub consider in usage?
  2. once device connected channel message consumed?

how server side can keep track users connected channel?

pubnub offers presence "connect webhooks" can ask account manager enable you. ask "presence callback active" , "presence callback inactive" settings. you'll want setup dev/prod key pair point webhook urls @ different environments.

the http callback url triggered when channel becomes active.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -