Search code examples
javascripthtmllan

HTML / js Lan Game


Possible Duplicate:
How to make a browser to browser (peer to peer) connection?

I'm planning on making a multiplayer game web game, and it would be awesome if it worked over lan (since it's faster and I want people, that play together, to sit in the same room.)

The idea is that each client is a webpage, one of them is the master, which all others connect to (the others don't have to communicate with each other.) Each client also is a webpage.

So now I was wondering, are there any javascript libraries out there that can do this? Connecting computers over lan, without the need of an internet connection (other than actually loading the webpage.)

I saw some older answers which didn't help much, so maybe there's something new that can help me?


Solution

  • Node.js could be really helpful in your case. You could also try to use HTML5 WebSocket API.