Networking/Multiplayer in HTML5

Hello,

Since the socket library isn’t implemented in HTML5 (tried to build with it in use but immediately threw an error after trying to start the weblink from localhost) what would be the best approach to add multiplayer to an HTML5 game/app?

Would using a JS module using socket calls be ideal or is there something more advantageous? Thank you in advance.