Hello,
When I try to run "node file.js" in command prompt. I get the following 
error.
socket.configure(function() {
^
TypeError: Object # has no method 'configure'
at init (C:\Users\user10\Desktop\trial1\game.js:8:9)
at Object. (C:\Users\user10\Desktop\trial1\game.js:13:1)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3

here is my code :

var util = require("util"),
io = require("socket.io");
var socket,
players;
function init() {
players = [];
socket = io.listen(8000);
socket.configure(function() {
socket.set("transports", ["websocket"]);
socket.set("log level", 2);
});
};
init();

Please help me to solve this.
Thank You

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/96683c5a-9ecc-485c-8dca-f9503a1eb351%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to