Subscribe to a channel with a filter expression which determines which messages you will receive on that channel. This is done with a special qualifier called filter on the channel name which accepts the filter expression as a parameter.

PHOTO EMBED

Fri Apr 21 2023 13:41:44 GMT+0000 (Coordinated Universal Time)

Saved by @AndraAbly #javascript

realtime.channels.get(
  `[filter=${urlencode("headers.key_2 == `2` || headers.key_3 == true")}]foo`
).subscribe(...);
content_copyCOPY