2024-06-28 10:34:57 +00:00
|
|
|
{.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]
|