hoaproject/Socket — pull request #8 by Hywan (2014-08-06 21:12:17+00:00)
Title: Implement the `broadcastIf` method

This method broadcasts a message to a subset of nodes that respect a given predicate. For example:

$source->broadcastIf(
function ( \Hoa\Socket\Node $node ) {

return $node->getNumber() > 5;
},
'You are high!'
);