How the y-websocket message push to client when connect to yjs

when I connect to the yjs like this:

wss://ws.example.top/81231f7111704b168a9806cb9f5ec9d4?access_token=eyJhbGciOiJIUzUxMiJ9.eyJ1c2VySWQiOjEwMywZGV2aWNlSWQiOiIyOTQ1ZGUwN2NkM2I1N2FkNmNkNTk4YjdhZTFjZTlmMCIsImFwcElkjoibjI5UGEyOVdTMSIsImV0IjowLCJwaWQiOjEzLCJleHAiOjE2OTY5MzA2ODN9.caVu2r0Bi1ITTARePhP4eePaF_75248WdMLWxb2L3buNaPvxPAHixFqFA7AZsktSCWb2C9J9L2zw5Yfek2FUQ

I can found the user info send by server side in devtools:

but I could not see the document binary content send from server, how the document send from server?

I assume you’re talking about the y-websocket library, but I’m not sure I understand your question.

The server sends messages to the client over websocket using a custom encoding protocol. The core YJS sync protocol is described here: https://github.com/yjs/y-protocols/blob/master/sync.js.