Wamp/Client.php
public function publish($topicUri, $payload, $exclude = [], $eligible = [])
    {
        if (null !== $this->logger) {
            $this->logger->info(sprintf(
                'Publish in %s',
                $topicUri
            ));
        }

        $data = array(Protocol::MSG_PUBLISH, $topicUri, $payload, $exclude, $eligible);
        $this->send($data);
    }
public function publish($topicUri, $payload, $exclude = [], $eligible = [])
    {
        if (null !== $this->logger) {
            $this->logger->info(sprintf(
                'Publish in %s',
                $topicUri
            ));
        }

        $data = array(Protocol::MSG_PUBLISH, $topicUri, $payload, $exclude, $eligible);
        $this->send($data);
    }
public function publish ( $ topicUri , $ payload , $ exclude = [ ] , $ eligible = [ ] ) { if ( null !== $ this -> logger ) { $ this -> logger -> info ( sprintf ( 'Publish in %s' , $ topicUri ) ) ; } $ data = array ( Protocol :: MSG_PUBLISH , $ topicUri , $ payload , $ exclude , $ eligible ) ; $ this -> send ( $ data ) ; }
The client will send an event to all clients connected to the server who have subscribed to the topicURI.

@see http://wamp.ws/spec#publish_message

@param string $topicUri
@param string $payload
@param string $exclude
@param string $eligible
The client will send an event to all clients connected to the server who have subscribed to the topicURI .