Zippytal-Node/proto/signaling.proto
2022-08-28 22:17:30 +02:00

26 lines
510 B
Protocol Buffer

syntax = "proto3";
package signaling;
option go_package = ".;localserver";
message NotifyRequest {
string from = 1;
string to = 2;
string type = 3;
bytes payload = 4;
}
message NotifyResponse {
bool success = 1;
}
message SignalingMessage {
string type = 1;
string from = 2;
string to = 3;
bytes payload = 4;
}
service SignalingService {
rpc Notify (NotifyRequest) returns (NotifyResponse);
rpc Link (stream SignalingMessage) returns (stream SignalingMessage);
}