Note. I am using Mac OS 10.10 Yosemite
Important Note: None of the other questions and answers worked for me.
I am following a tutorial that will have it so that I have a multiplayer game. There is a file that I have to download that has a game.js file that I need to add to the following code:
Note. I loaded socket.io correctly in the correct directory.
var util = require("util"), io = require("socket.io").listen(80); var socket, players; function init() { players = []; socket = io.listen(8000); socket.configure(function() { socket.set("transports", ["websocket"]); socket.set("log level", 2); }); }; init();
But when I run node game.js , I get an error message that looks like this:
Note. The Robhawks-mozzilla-festival-92336f2 folder is a folder in which there are all files.

Why did the .configure socket go bad? Also, how can I fix this?
user4930716
source share