public function publish($channel, $data, $id=null, $prev_id=null)
    {
        $pub = $this->get_pubcontrol();
        $pub->publish($channel, new \PubControl\Item(
                new JsonObjectFormat($data), $id, $prev_id));
    }
public function publish($channel, $data, $id=null, $prev_id=null)
    {
        $pub = $this->get_pubcontrol();
        $pub->publish($channel, new \PubControl\Item(
                new JsonObjectFormat($data), $id, $prev_id));
    }
public function publish ( $ channel , $ data , $ id = null , $ prev_id = null ) { $ pub = $ this -> get_pubcontrol ( ) ; $ pub -> publish ( $ channel , new \ PubControl \ Item ( new JsonObjectFormat ( $ data ) , $ id , $ prev_id ) ) ; }
ID to send along with the message.
ID to send along with the message .