DO hibernate not working when sending message through websocket

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

my durable object hibernate

What is the error message?

No error messages

What is the issue or error you’re encountering

I am trying to use Durable Object hibernation with Workers. I can make a connection but if I send a message, webSocketMessage is never triggered, I am using the example from Cloudflare documentation Build a WebSocket server with WebSocket Hibernation · Cloudflare Durable Objects docs

What are the steps to reproduce the issue?

I am following the documentation.

I can see my DO in the dashboard, but still I can’t receive back the messages.


My Durable Object is uploaded but doesn’t work as the documentation. I copy pasted the code… How come?
Whatever I send through the websocket, it should send back a message… but no reply…

async webSocketMessage(ws, message) {
        // Upon receiving a message from the client, reply with the same message,
        // but will prefix the message with "[Durable Object]: " and return the
        // total number of connections.
        ws.send(
            `[Durable Object] message: ${message}, connections: ${this.ctx.getWebSockets().length}`,
        );
    }

It doesn’t work in local as well. I really hope someone can reply