public function publish_async($channel, $data, $id=null, $prev_id=null,
            $callback=null)
    {
        $pub = $this->get_pubcontrol();
        $pub->publish_async($channel, new \PubControl\Item(
                new JsonObjectFormat($data), $id, $prev_id), $callback);
    }
public function publish_async($channel, $data, $id=null, $prev_id=null,
            $callback=null)
    {
        $pub = $this->get_pubcontrol();
        $pub->publish_async($channel, new \PubControl\Item(
                new JsonObjectFormat($data), $id, $prev_id), $callback);
    }
public function publish_async ( $ channel , $ data , $ id = null , $ prev_id = null , $ callback = null ) { $ pub = $ this -> get_pubcontrol ( ) ; $ pub -> publish_async ( $ channel , new \ PubControl \ Item ( new JsonObjectFormat ( $ data ) , $ id , $ prev_id ) , $ callback ) ; }
if an error was encountered.
if an error was encountered .