Event¶
Imports¶
In Protobuf files:
import "melo/api/Event.proto";
In C++ files:
#include <melo/api/Event.pb.h>
Request¶
This message is used as payload for Event Request messages.
Field |
Type |
Label |
Description |
|---|---|---|---|
subscribe |
Request.Subscribe |
Subscribe to events from a node
|
|
unsubscribe |
Request.Subscribe |
Unsubscribe to events from a node
|
Request.Subscribe¶
Message to subscribe / unsubscribe
Field |
Type |
Label |
Description |
|---|---|---|---|
type |
melo.api.NodeType |
The type of the node to subscribe to
|
|
id |
string |
The ID of the node to subscribe to
|
Response¶
This message is used as payload for Event Response messages.
Field |
Type |
Label |
Description |
|---|---|---|---|
count |
uint32 |
Number of subscription requests
|