mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-19 03:12:35 +00:00
21 lines
361 B
Nim
21 lines
361 B
Nim
when (NimMajor, NimMinor) < (1, 4):
|
|
{.push raises: [Defect].}
|
|
else:
|
|
{.push raises: [].}
|
|
|
|
import
|
|
../waku_message
|
|
|
|
type
|
|
PushRequest* = object
|
|
pubSubTopic*: string
|
|
message*: WakuMessage
|
|
|
|
PushResponse* = object
|
|
isSuccess*: bool
|
|
info*: string
|
|
|
|
PushRPC* = object
|
|
requestId*: string
|
|
request*: PushRequest
|
|
response*: PushResponse |