users@tyrus.java.net

TyrusSession.broadcast enhancement

From: Gerard Davison <gerard.davison_at_oracle.com>
Date: Wed, 4 Dec 2013 10:40:38 +0000

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