Advice: large doc over websocket is slow

I’m hoping someone may have some insight / advice. We have a client-server setup that’s working great over websocket. We use y-protocol and Socket.io. However, some of our documents can be a bit large (e.g. 16MB), and a document that size takes over 30sec to load over websockets. Over a normal TCP connection, it would be 10x faster.

I’m hoping folks here might have some insight or advice. Do others experience this slowness as well? Could we be doing something wrong in how we’ve configured Socket.io?

Thanks!

y-protocols is used for exchanging awareness information. Are you using it to load 16MB document over Socket.io?