public function onPublish(ConnectionInterface $conn, $topic, $event, array $exclude, array $eligible)
    {
        $this->console->info('onPublish');
    }
public function onPublish(ConnectionInterface $conn, $topic, $event, array $exclude, array $eligible)
    {
        $this->console->info('onPublish');
    }
public function onPublish ( ConnectionInterface $ conn , $ topic , $ event , array $ exclude , array $ eligible ) { $ this -> console -> info ( 'onPublish' ) ; }
A client is attempting to publish content to a subscribed connections on a URI.

@param \Ratchet\ConnectionInterface $conn
@param string|Topic                 $topic    The topic the user has attempted to publish to
@param string                       $event    Payload of the publish
@param array                        $exclude  A list of session IDs the message should be excluded from (blacklist)
@param array                        $eligible A list of session Ids the message should be send to (whitelist)
A client is attempting to publish content to a subscribed connections on a URI .