From aaf10d758762746c5e606d42f9ed61543858fc84 Mon Sep 17 00:00:00 2001 From: Tomasz Mazur <47872060+AHGIJMKLKKZNPJKQR@users.noreply.github.com> Date: Thu, 14 Aug 2025 15:36:01 +0200 Subject: [PATCH 1/2] Remove room_id --- doc/docs.md | 1 - fishjam/agent_notifications.proto | 1 - fishjam_protos/lib/fishjam/agent_notifications.pb.ex | 1 - 3 files changed, 3 deletions(-) diff --git a/doc/docs.md b/doc/docs.md index 705340c..f3d0204 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -180,7 +180,6 @@ Request sent by agent, to authenticate to Fishjam server | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | token | [string](#string) | | | -| room_id | [string](#string) | | | diff --git a/fishjam/agent_notifications.proto b/fishjam/agent_notifications.proto index a6e4ba2..4d7f104 100644 --- a/fishjam/agent_notifications.proto +++ b/fishjam/agent_notifications.proto @@ -9,7 +9,6 @@ message AgentRequest { // Request sent by agent, to authenticate to Fishjam server message AuthRequest { string token = 1; - string room_id = 2; } // Request to add a track of the specified type diff --git a/fishjam_protos/lib/fishjam/agent_notifications.pb.ex b/fishjam_protos/lib/fishjam/agent_notifications.pb.ex index eed4969..a3ec5b2 100644 --- a/fishjam_protos/lib/fishjam/agent_notifications.pb.ex +++ b/fishjam_protos/lib/fishjam/agent_notifications.pb.ex @@ -4,7 +4,6 @@ defmodule Fishjam.AgentRequest.AuthRequest do use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3 field :token, 1, type: :string - field :room_id, 2, type: :string, json_name: "roomId" end defmodule Fishjam.AgentRequest.AddTrack.CodecParameters do From 4c6847369b5d8b69f6e6e7841f1b9222bcacdca3 Mon Sep 17 00:00:00 2001 From: Tomasz Mazur <47872060+AHGIJMKLKKZNPJKQR@users.noreply.github.com> Date: Thu, 14 Aug 2025 15:38:18 +0200 Subject: [PATCH 2/2] Remove peer_id from response --- doc/docs.md | 5 ----- fishjam/agent_notifications.proto | 5 +---- fishjam_protos/lib/fishjam/agent_notifications.pb.ex | 2 -- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/doc/docs.md b/doc/docs.md index f3d0204..6acfa84 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -239,11 +239,6 @@ Defines any type of message passed from Fishjam to agent peer Response confirming successful authentication -| Field | Type | Label | Description | -| ----- | ---- | ----- | ----------- | -| peer_id | [string](#string) | | The Peer ID assigned to the connected Agent | - - diff --git a/fishjam/agent_notifications.proto b/fishjam/agent_notifications.proto index 4d7f104..f92189d 100644 --- a/fishjam/agent_notifications.proto +++ b/fishjam/agent_notifications.proto @@ -50,10 +50,7 @@ message AgentRequest { // Defines any type of message passed from Fishjam to agent peer message AgentResponse { // Response confirming successful authentication - message Authenticated { - // The Peer ID assigned to the connected Agent - string peer_id = 1; - } + message Authenticated {} // Notification containing a chunk of a track's data stream message TrackData { diff --git a/fishjam_protos/lib/fishjam/agent_notifications.pb.ex b/fishjam_protos/lib/fishjam/agent_notifications.pb.ex index a3ec5b2..e1100d6 100644 --- a/fishjam_protos/lib/fishjam/agent_notifications.pb.ex +++ b/fishjam_protos/lib/fishjam/agent_notifications.pb.ex @@ -71,8 +71,6 @@ defmodule Fishjam.AgentResponse.Authenticated do @moduledoc false use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3 - - field :peer_id, 1, type: :string, json_name: "peerId" end defmodule Fishjam.AgentResponse.TrackData do