Skip to content

Commit 22935e3

Browse files
authored
mux: add opaque state to handshake (#82)
Signed-off-by: Matt Klein <[email protected]>
1 parent 433bbd5 commit 22935e3

File tree

1 file changed

+10
-0
lines changed
  • src/bitdrift_public/protobuf/client/v1

1 file changed

+10
-0
lines changed

src/bitdrift_public/protobuf/client/v1/api.proto

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ message HandshakeRequest {
6969

7070
// At the time of the handshake, whether the client is operating in sleep mode.
7171
bool sleep_mode = 7;
72+
73+
// Opaque client state previously provided by the server in a HandshakeResponse. The client
74+
// should continue to send this on every handshake request until the server provides a new
75+
// value (which may be empty to clear existing state).
76+
optional bytes opaque_client_state = 8;
7277
}
7378

7479
// Notifies the server about the intent to upload one or more batches of logs. The client is expected (but
@@ -333,6 +338,11 @@ message HandshakeResponse {
333338
// 0x1: Runtime is up to date and no further update message will be supplied.
334339
// 0x2: Configuration is up to date and no further update message will be supplied.
335340
uint32 configuration_update_status = 2;
341+
342+
// Opaque client state that should be echoed back to the server on every future handshake
343+
// request. If unset, the client should continue to send any existing opaque state, or none
344+
// if it has none. Sending an explicit empty value will clear any existing state.
345+
optional bytes opaque_client_state_to_echo = 3;
336346
}
337347

338348
// A general indication of rate limiting from server to client.

0 commit comments

Comments
 (0)