Optional
onClientConnect?: (client: string) => anyOptional
onClientDisconnect?: (client: string) => voidCallback for when a client disconnects (previously connected and the provider stops)
The relays to communicate over
Optional
secret?: stringA random secret used to authorize clients to connect
Optional
signer?: ISignerOptional signer for provider identity
The signer to use for signing events and encryption
Callback for when a client connects (receives a
connect
request)