I am a beginner to node.js and more so , to socket.io. In node.js, there is no need for any client side code as far as i know. We can simply connect to the server by pointing the browser to http://localhost:port.
But, in the case of socket.io, there seems to be client side code. But, where should i write this ? Should i write this in a html file and host it from a normal http server? I am a bit confused about the basic architecture itself and i couldnt find this basic explanation anywhere. Please do bear with me
Thanks
I recently wrote a very simple chat application with Node.js and Socket.IO. Like the above comment, you can use express to server your HTML by configuring a static directory:
See the full code here: https://github.com/pifantastic/stupid-simple-chat/blob/master/server.js
*EDIT*
I should add, in Socket.IO > 0.7, you can serve the socket.io JS library straight out of Node.js, it lives at /socket.io/socket.io.js: