class RelayGroup
implements RelayLike
import { RelayGroup } from "https://deno.land/x/lophus@0.0.13/lib/relays.ts";
A pool of relays that can be used as a single relay.
Constructors
new
RelayGroup(relays: RelayLike[], options?: RelayLikeOptions)Properties
readonly
config: Readonly<RelayLikeConfig>readonly
writable: WritableStream<ClientToRelayMessage>Methods
close()
publish<K extends EventKind>(msg: NostrEvent<K>)
send(msg: ClientToRelayMessage)
subscribe<K extends EventKind>(filter: SubscriptionFilter<K> | SubscriptionFilter<K>[], opts?: Partial<SubscriptionOptions>)