WebSockets minimal library ( m.net.WebSocket )

In fact WebSockets are so well supported nowadays, especially in WebGL world, that you can simply use pure WebSockets, and make own small wrapper around them to suit your needs.