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()