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