Example gRPC broadcaster

This is an example gRPC broadcaster written with Tonic.
It takes a stream of messages, and echoes that back to
all known subscribers.
This commit is contained in:
Matteo Settenvini 2023-04-27 18:04:53 +02:00 committed by Matteo Settenvini
commit 6dc58f998c
11 changed files with 1712 additions and 0 deletions

View file

@ -0,0 +1,14 @@
// SPDX-FileCopyrightText: 2023 Matteo Settenvini <matteo.settenvini@montecristosoftware.eu>
// SPDX-License-Identifier: CC0-1.0
syntax = "proto3";
package package;
service Service {
rpc Broadcaster (stream Message) returns (stream Message);
}
message Message {
string contents = 1;
}