From b55c842e337bd798385f2bb4a64592d161d2a31a Mon Sep 17 00:00:00 2001 From: Mustafa BOLEKEN Date: Wed, 17 Jul 2024 14:06:53 +0300 Subject: [PATCH 1/2] Add CONNECTION_INTERRUPTED_DESCRIPTION websocket const --- src/main/java/io/antmedia/websocket/WebSocketConstants.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/io/antmedia/websocket/WebSocketConstants.java b/src/main/java/io/antmedia/websocket/WebSocketConstants.java index d30df0481..5c09257f4 100644 --- a/src/main/java/io/antmedia/websocket/WebSocketConstants.java +++ b/src/main/java/io/antmedia/websocket/WebSocketConstants.java @@ -460,6 +460,11 @@ private WebSocketConstants() { * It's sent for the restored webrtc publish sessions */ public static final String SESSION_RESTORED_DESCRIPTION = "session_restored"; + + /** + * It's sent for the interrupted webrtc publish sessions + */ + public static final String CONNECTION_INTERRUPTED_DESCRIPTION = "connection_interrupted"; /** * It's the field that maps sdp mid to stream id From e3275d76939520764fb19fadf5b826713c133224 Mon Sep 17 00:00:00 2001 From: Mustafa BOLEKEN Date: Mon, 22 Jul 2024 15:32:32 +0300 Subject: [PATCH 2/2] Add CONNECTION_DISCONNECT_UNINTENTIONALLY --- src/main/java/io/antmedia/websocket/WebSocketConstants.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/antmedia/websocket/WebSocketConstants.java b/src/main/java/io/antmedia/websocket/WebSocketConstants.java index 5c09257f4..dea5f6e93 100644 --- a/src/main/java/io/antmedia/websocket/WebSocketConstants.java +++ b/src/main/java/io/antmedia/websocket/WebSocketConstants.java @@ -464,8 +464,8 @@ private WebSocketConstants() { /** * It's sent for the interrupted webrtc publish sessions */ - public static final String CONNECTION_INTERRUPTED_DESCRIPTION = "connection_interrupted"; - + public static final String CONNECTION_DISCONNECT_UNINTENTIONALLY = "connectionDisconnectUnintentionally"; + /** * It's the field that maps sdp mid to stream id */