2022-11-04 09:52:27 +00:00
|
|
|
when (NimMajor, NimMinor) < (1, 4):
|
|
|
|
{.push raises: [Defect].}
|
|
|
|
else:
|
|
|
|
{.push raises: [].}
|
2022-08-02 23:47:42 +00:00
|
|
|
|
2024-03-15 23:08:47 +00:00
|
|
|
import std/options
|
|
|
|
import ../waku_core
|
2022-08-02 23:47:42 +00:00
|
|
|
|
|
|
|
type
|
|
|
|
PushRequest* = object
|
|
|
|
pubSubTopic*: string
|
|
|
|
message*: WakuMessage
|
|
|
|
|
|
|
|
PushResponse* = object
|
|
|
|
isSuccess*: bool
|
2022-11-18 19:01:01 +00:00
|
|
|
info*: Option[string]
|
2022-08-02 23:47:42 +00:00
|
|
|
|
|
|
|
PushRPC* = object
|
|
|
|
requestId*: string
|
2022-11-18 19:01:01 +00:00
|
|
|
request*: Option[PushRequest]
|
|
|
|
response*: Option[PushResponse]
|