Managing multiple collaborative documents in a shared type Example websocket connections

Does the " Managing multiple collaborative documents in a shared type" create multiple websocket connections per shared type/document or is it a single websocket connection?

Synchronization always happens on a doc level. All types on a shared doc are going to be synced through a single websocket connection (if you are using y-websocket).