mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-03 22:43:09 +00:00
Added events and requests for support. Reworked delivery_monitor into a featured devlivery_service, that - supports relay publish and lightpush depending on configuration but with fallback options - if available and configured it utilizes store api to confirm message delivery - emits message delivery events accordingly Notice: There are parts still in WIP and needs review and follow ups. prepare for use in api_example
12 lines
335 B
Nim
12 lines
335 B
Nim
import std/options
|
|
import waku/common/broker/[request_broker, multi_request_broker]
|
|
import waku/waku_core/[topics]
|
|
|
|
RequestBroker:
|
|
type RequestRelayShard* = object
|
|
relayShard*: RelayShard
|
|
|
|
proc signature(
|
|
pubsubTopic: Option[PubsubTopic], contentTopic: ContentTopic
|
|
): Future[Result[RequestRelayShard, string]] {.async.}
|