Relay
Properties
Link copied to clipboard
The subset of RelayMessage that only contain messages of type EventMessage
Link copied to clipboard
The subset of allEvents that are of type EncryptedDm
Link copied to clipboard
All messages transmitted by this relay for our active subscriptions
Link copied to clipboard
The subset of allEvents that are of type UserMetaData
Functions
Link copied to clipboard
fun subscribe(filter: Filter, subscription: Subscription = Subscription(randomSubscriptionId())): Subscription
Create a new subscription with exactly one filter
abstract fun subscribe(filters: Set<Filter>, subscription: Subscription = Subscription(randomSubscriptionId())): Subscription
Create a new subscription with zero to many filters
Link copied to clipboard
Unsubscribe from a subscription