mirror of https://github.com/waku-org/nwaku.git
14 lines
420 B
Nim
14 lines
420 B
Nim
import chronicles
|
|
|
|
type SubscriptionObserver* = ref object of RootObj
|
|
|
|
method onSubscribe*(
|
|
self: SubscriptionObserver, pubsubTopic: string, contentTopics: seq[string]
|
|
) {.base, gcsafe, raises: [].} =
|
|
error "onSubscribe not implemented"
|
|
|
|
method onUnsubscribe*(
|
|
self: SubscriptionObserver, pubsubTopic: string, contentTopics: seq[string]
|
|
) {.base, gcsafe, raises: [].} =
|
|
error "onUnsubscribe not implemented"
|