Relay mock with control helpers.
Terminate a subscription from the shell side with relay.closed.
relay.closed
Optional
Store an event as if observed from the network and fan it out to live subscriptions. author is a fixture name or hex pubkey.
author
const relay = createMockRelayService();relay.inject({ kind: 1, content: 'from the network' }, 'bob'); Copy
const relay = createMockRelayService();relay.inject({ kind: 1, content: 'from the network' }, 'bob');
Relay mock with control helpers.