It’s all anycast, so each user goes to the closest node. For websocket in user-to-user you need to go to durable objects to handle the sending and the connection. There is no automatic routing, when you connect with websockets you go to the function, which ends it’s run after some time.