So I was doing a presentation on WebSockets yesterday and it occurred to me that the “broadcast” method should really be extended so allow some kind of filtering on which connections the events is sent to, for example
peer.broadcast(s -> s.getUserProperties().contains(“NAME”)).message(message);
or
peer.broadcast(message, s -> s.getUserProperties().contains(“NAME”));
Does this seem reasonable for a range of use cases, if so I will raise a ER.
Gerard