WebSocket interaction modeled as a pair of streams, for incoming and outgoing messages correspondingly