protected function sendFrame($frame)
{
$c =& $this->attrs->get['c'];
if (!is_string($c)) {
$this->header('400 Bad Request');
$this->finish();
return;
}
$this->outputFrame($c . '(' . json_encode($frame, JSON_UNESCAPED_SLASHES) . ");\r\n");
parent::sendFrame($frame);
}