a Node.js stream API on top of WebSocket