123456789101112131415161718192021222324252627282930313233343536373839 |
- /*
- * Copyright 2020 Signal Messenger, LLC
- * SPDX-License-Identifier: AGPL-3.0-only
- */
- syntax = "proto2";
- package signalservice;
- option java_package = "org.whispersystems.websocket.messages.protobuf";
- option java_outer_classname = "SubProtocol";
- message WebSocketRequestMessage {
- optional string verb = 1;
- optional string path = 2;
- optional bytes body = 3;
- repeated string headers = 5;
- optional uint64 id = 4;
- }
- message WebSocketResponseMessage {
- optional uint64 id = 1;
- optional uint32 status = 2;
- optional string message = 3;
- repeated string headers = 5;
- optional bytes body = 4;
- }
- message WebSocketMessage {
- enum Type {
- UNKNOWN = 0;
- REQUEST = 1;
- RESPONSE = 2;
- }
- optional Type type = 1;
- optional WebSocketRequestMessage request = 2;
- optional WebSocketResponseMessage response = 3;
- }
|