feat: add KeepAlive packet

NGINX really doesn't like it when the client doesn't send messages
for a while. This prevents it from closing the connection.
This commit is contained in:
2023-07-15 13:20:12 +02:00
parent c12b78970c
commit 1fe4783d94
2 changed files with 12 additions and 3 deletions
+5 -3
View File
@@ -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;
}
}
+7
View File
@@ -0,0 +1,7 @@
syntax = "proto3";
// Server <-> Client
// data: any data, server ignores this
message KeepAlive {
required uint32 data = 1;
}