LearnBoost/socket.io — Issue #704: Cannot get client working
Author: stevesh
Created: 2011-12-29 19:49:25+00:00
State: open

Hi. I'm new to this project and cannot get the client working.
In Chrome on Windows it always gives me:
'Uncaught ReferenceError: require is not defined' and
'Uncaught ReferenceError: io is not defined'

My code is the sample-code:
var socket = io.connect('http://localhost:8080'); socket.on('news', function (data) { console.log(data); socket.emit('my other event', { my: 'data' }); });

the 'require'-error comes from the first 'require' in socket.io.js.
Please help...

3RD-EDEN COMMENTED: