public function sendFrame($data, $type = null, $cb = null) { $this->realConn->sendFrame('a' . $this->toJson([$data]), $type, $cb); return true; }