Example - Team chat - PushJS

Team chat

Example: Team chat

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 user appear in the chat screen.