
Example: Notification counter
This sample sends a counter update to a specific client that is connected to your channel.
Sending to a specific client and not to everyone in the channel is considered as a private message. In the background it is actually a private event. This is done by applying a filter to the event based on a property, any property will suffice.
Learn how to:
- Set an attribute
- Apply a filter
- Send a private message
To see PushJS working in this example, open up another page and see the counter for each specific client.