working with websockets and pipelining