- {{ $t("helpers.authorization") }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {
+ authType = 'None'
+ authTypeOptions.tippy().hide()
+ }
+ "
+ />
+ {
+ authType = 'Bearer'
+ authTypeOptions.tippy().hide()
+ }
+ "
+ />
+
+
+
+
+
+ {{ t("state.enabled") }}
+
+
+
-
+
+
![]()
+
+ {{ t("socketio.connection_not_authorized") }}
+
+
-
-
-
diff --git a/packages/hoppscotch-app/components/realtime/Sse.vue b/packages/hoppscotch-app/components/realtime/Sse.vue
index ac5ca388..d9b4a713 100644
--- a/packages/hoppscotch-app/components/realtime/Sse.vue
+++ b/packages/hoppscotch-app/components/realtime/Sse.vue
@@ -11,11 +11,13 @@
v-model="server"
type="url"
autocomplete="off"
- :class="{ error: !serverValid }"
+ :class="{ error: !isUrlValid }"
class="flex flex-1 w-full px-4 py-2 border rounded-l bg-primaryLight border-divider text-secondaryDark"
:placeholder="$t('sse.url')"
- :disabled="connectionSSEState"
- @keyup.enter="serverValid ? toggleSSEConnection() : null"
+ :disabled="
+ connectionState === 'STARTED' || connectionState === 'STARTING'
+ "
+ @keyup.enter="isUrlValid ? toggleSSEConnection() : null"
/>