Example - Clients and their attributes - PushJS

Clients and their attributes

example
Example: Clients and their attributes

A small demonstration on how to get the client id from a client who just entered the channel and watch for incoming attribute changes from different clients and how to handle them.

Learn how to:
  • Get the client id
  • Listen for client attribute changes
  • Get and set client attributes

To see PushJS working in this example, open up another page and see the new user appearing.

close