
message Message {
  optional string id = 1;
  optional string error = 2;
  optional bytes data = 3;
  repeated Stream streams = 4;
  optional bool fire = 5;

  message Stream {
    optional string id = 1;
    optional string name = 2;
    optional bool objectMode = 3;
    optional StreamType type = 4;
  }
}

enum StreamType {
  Readable = 1;
  Writable = 2;
  Duplex = 3;
}
