You can use it the same as you do with other yjs providers, but you have to pass it a socket which can be created with someting like this:
// set the peer id
const peerId = window.localStorage.getItem('peerId') ?? (await Encryption.createId())
window.localStorage.setItem('peerId', peerId)
// set the signing keys
const keySeed = window.localStorage.getItem('keySeed') ?? createId()
window.localStorage.setItem('keySeed', keySeed)
const signingKeys = await Encryption.createKeyPair(keySeed)
// set the cluster id
const clusterId = await Encryption.createClusterId(CLUSTER_ID_SEED)
// create the network socket
const socket = await network({ peerId, clusterId, signingKeys })