Closed linspw closed 9 months ago
Thanks for your PR! The change looks a bit special, as you could also just do it manually and usually the broadcast really should send to everyone.
I think if we can add something like a filter function, it makes it more suitable for other scenarios as well. What do you think?
public broadcastStateless(payload: string, filter?: (conn: Connection) => boolean): void
Thank you very much for the answer and sorry for my delay, I adjusted the implementation, what you said makes more sense @janthurau
This is an implementation based on @grootgordon suggestion https://github.com/ueberdosis/hocuspocus/issues/618