use websocket for pattern endpoints