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));
    }