public function ajax_ping(CM_Params $params, CM_Frontend_JavascriptContainer_View $handler, CM_Http_Response_View_Ajax $response) { $number = $params->getInt('number'); self::stream($response->getViewer(true), 'ping', array("number" => $number, "message" => 'pong')); }