https://wikitech.wikimedia.org/wiki/Help:Tool_Labs/Web#node.js_web_services documents the new (experimental) nodejs support on toollabs. Can you try it out and see how that fares? It should support websockets.