robhawkes / mozilla-festival

136 stars 74 forks source link

error while running nodejs game.js #3

Open sayan801 opened 9 years ago

sayan801 commented 9 years ago

root@html5:~/mozilla-festival# nodejs game.js

/root/mozilla-festival/game.js:27 socket.configure(function() { ^ TypeError: Object # has no method 'configure' at init (/root/mozilla-festival/game.js:27:9) at Object. (/root/mozilla-festival/game.js:139: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:935:3 root@html5:~/mozilla-festival#

Azunyan- commented 9 years ago

I got the same error, I think socket.io changed how the configure works but I'm not sure.

georules commented 9 years ago

socketio changed their API since this project was made. Here is a fix in a pull request.

https://github.com/robhawkes/mozilla-festival/pull/4

Also note that the files in public are not served by the server, you can open index.html directly from the file system, or you will need to set up some other server to host public/