Goal
Allow clients to trigger client-* prefixed events on private and presence channels (pusher-js channel.trigger('client-foo', data)), per the Pusher protocol. Currently these arrive at handleWebSocketMessage and hit the "Unhandled Event" branch.
Requirements (per Pusher spec)
Depends on per-channel subscription state (#12) to verify the sender's membership.
Promoted from the README "Contributing > Client-Side Events" section so it can be tracked.
Goal
Allow clients to trigger
client-*prefixed events on private and presence channels (pusher-jschannel.trigger('client-foo', data)), per the Pusher protocol. Currently these arrive athandleWebSocketMessageand hit the "Unhandled Event" branch.Requirements (per Pusher spec)
private-/presence-channels the sender is actually subscribed to; reject elsewhere with apusher:errorws.publishdoes this natively in Bun)client-and a payload size limit (Pusher: 10KB)client_eventwebhook once webhook support (Webhook Support #3) expandsDepends on per-channel subscription state (#12) to verify the sender's membership.
Promoted from the README "Contributing > Client-Side Events" section so it can be tracked.