Websocket Hibernation API Migrate

For Workers & Pages, what is the name of the domain?

.

What is the issue or error you’re encountering

.

What are the steps to reproduce the issue?

I’m trying to switch to the Hibernation API, since the costs of the standard Websockets API with Cloudflare are too high.

I did what the almost non-existent documentation requires: use acceptWebSocket() and instead of using listeners use webSocketMessage() and webSocketClose(), this part of my code works. However, I need to save, for example, who was the first websocket connection, since all messages sent should be directed to that person.

What I’ve achieved so far is this: