"Multiplayer/Networking" section in the how do I FAQ.
Use a third part plugin like socket.io for C2, make a webserver in node.js to link clients.
But realtime as in realtime action game is nearly impossible to achieve at the moment.
Turn-based is probably what will work the best for now.