From 0611c78cabd56205a8cf361c56d4a23e9ebba3af Mon Sep 17 00:00:00 2001 From: robbiebailey Date: Wed, 22 Oct 2025 16:42:36 +0100 Subject: [PATCH 1/2] feat: Add support for new 'session' webrtc datachannel to support future data sent from server via datachannel. --- src/modules/StreamingClient.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/StreamingClient.ts b/src/modules/StreamingClient.ts index a668b34..29a0cb2 100644 --- a/src/modules/StreamingClient.ts +++ b/src/modules/StreamingClient.ts @@ -29,6 +29,11 @@ const SUCCESS_METRIC_POLLING_TIMEOUT_MS = 15000; // After this time we will stop const STATS_COLLECTION_INTERVAL_MS = 5000; const ICE_CANDIDATE_POOL_SIZE = 2; // Optimisation to speed up connection time +// Data channel message types +const DATA_CHANNEL_MESSAGE_TYPE = { + SPEECH_TEXT: 'speechText', +} as const; + export class StreamingClient { private publicEventEmitter: PublicEventEmitter; private internalEventEmitter: InternalEventEmitter; From 1e985f43541a76b8b52f2c498c55006a785e1f9b Mon Sep 17 00:00:00 2001 From: Alex Osland Date: Mon, 27 Oct 2025 16:54:44 +0000 Subject: [PATCH 2/2] refactor: move data channel message type to separate enum --- src/modules/StreamingClient.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/modules/StreamingClient.ts b/src/modules/StreamingClient.ts index 29a0cb2..a668b34 100644 --- a/src/modules/StreamingClient.ts +++ b/src/modules/StreamingClient.ts @@ -29,11 +29,6 @@ const SUCCESS_METRIC_POLLING_TIMEOUT_MS = 15000; // After this time we will stop const STATS_COLLECTION_INTERVAL_MS = 5000; const ICE_CANDIDATE_POOL_SIZE = 2; // Optimisation to speed up connection time -// Data channel message types -const DATA_CHANNEL_MESSAGE_TYPE = { - SPEECH_TEXT: 'speechText', -} as const; - export class StreamingClient { private publicEventEmitter: PublicEventEmitter; private internalEventEmitter: InternalEventEmitter;