Using a pipe instead of a WebSocket