Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3333778
D5525.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
871 B
Referenced Files
None
Subscribers
None
D5525.diff
View Options
diff --git a/shared/protos/tunnelbroker.proto b/shared/protos/tunnelbroker.proto
--- a/shared/protos/tunnelbroker.proto
+++ b/shared/protos/tunnelbroker.proto
@@ -22,6 +22,8 @@
rpc Get(GetRequest) returns (stream GetResponse) {}
// Replacing Send and Get with a single bidirectional streaming RPC
+ // The client should provide the valid `sessionID` identifier
+ // from the `NewSession` in the stream request metadata
rpc MessagesStream(stream MessageToTunnelbroker) returns (stream MessageToClient) {}
}
@@ -105,11 +107,10 @@
}
message MessageToTunnelbroker {
- string sessionID = 1;
oneof data {
- MessagesToSend messagesToSend = 2;
- ProcessedMessages processedMessages = 3;
- string newNotifyToken = 4;
+ MessagesToSend messagesToSend = 1;
+ ProcessedMessages processedMessages = 2;
+ string newNotifyToken = 3;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 22, 5:15 AM (14 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2560067
Default Alt Text
D5525.diff (871 B)
Attached To
Mode
D5525: [services] Tunnelbroker - Removing of 'sessionID' from 'MessageToTunnelbroker'
Attached
Detach File
Event Timeline
Log In to Comment