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
|
|
|
|
2022-11-18 19:01:01 +00:00
|
|
|
import
|
|
|
|
std/options
|
2022-08-02 23:47:42 +00:00
|
|
|
import
|
|
|
|
../waku_message
|
|
|
|
|
|
|
|
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]
|