diff --git a/protobuf/2.0/Container.proto b/protobuf/2.0/Container.proto index b544f28..c69255b 100644 --- a/protobuf/2.0/Container.proto +++ b/protobuf/2.0/Container.proto @@ -1,12 +1,13 @@ +syntax = "proto3"; + import "./Authentication.proto"; import "./Message.proto"; import "./PublishDiscover.proto"; - -syntax = "proto3"; +import "./KeepAlive.proto"; // Client <-> Server message Container { - required uint32 id = 1; + required uint32 id = 1; oneof message { AuthenticationRequest AuthenticationRequest = 2; @@ -16,5 +17,6 @@ message Container { PublishResponse PublishResponse = 6; DiscoverRequest DiscoverRequest = 7; DiscoverResponse DiscoverResponse = 8; + KeepAlive KeepAlive = 9; } } diff --git a/protobuf/2.0/KeepAlive.proto b/protobuf/2.0/KeepAlive.proto new file mode 100644 index 0000000..3c583eb --- /dev/null +++ b/protobuf/2.0/KeepAlive.proto @@ -0,0 +1,7 @@ +syntax = "proto3"; + +// Server <-> Client +// data: any data, server ignores this +message KeepAlive { + required uint32 data = 1; +}