indaband / pusher_channels

A pure Dart implementation of the Pusher Channels Client
https://pusher.com/channels
MIT License
8 stars 3 forks source link

Ability to get socket identifier #5

Open andreaselia opened 2 years ago

andreaselia commented 2 years ago

It would be pretty nice to be able to use the socket connection identifier for cases where you may want to ping a message to other clients from say a backend API, without pinging the sender.

andrewsmedina commented 2 years ago

@andreaselia I don't know if I have understood. Are you talking about authenticated channels?

andreaselia commented 2 years ago

@andrewsmedina an example better to what I mean would be in Laravel you're able to broadcast "toOthers" which relies on having the current socket identifier so the the event doesn't get fired to the sender.

Andreas triggers an event that gets send to the backend backend sends the event toOthers Andrews receives the event triggered by the backend, but Andreas does not