我写了以下代码:
var http = require("http"); // http server core module
var express = require("express"); // web framework external module
var io = require("socket.io"); // web socket external module
var easyrtc = require("easyrtc"); // EasyRTC external module
var app = express();
var server = http.createServer(app).listen(app.get('port'));
io= io.listen(server,{"log level":1});
var rtc = easyrtc.listen(server, io);
这给出了以下错误:
$node server info - EasyRTC: 在 Node (v0.10.26) 上启动 EasyRTC Server (v1.0.10) [TypeError: Object # has no method 'get'] TypeError: Object # has no method 'get' at async.waterfall.pub .socketServer.sockets.on.easyrtcid (/home/ritzy1/Downloads/downloaded codes/VEDIO/change2/testexpandwb/node_modules/easyrtc/lib/easyrtc_default_event_listeners.js:1472:29) 在 fn (/home/ritzy1/Downloads/downloaded代码/VEDIO/change2/testexpandwb/node_modules/easyrtc/node_modules/async/lib/async.js:582:34) 在 Object._onImmediate (/home/ritzy1/Downloads/downloaded codes/VEDIO/change2/testexpandwb/node_modules/easyrtc /node_modules/async/lib/async.js:498:34) 在 processImmediate [as _immediateCallback] (timers.js:330:15)
我该如何解决?