Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

fix: Prevent storybook from making websocket connections (#2896)

Pranav Joglekar23a2dccd3c1c
diff --git a/web/components/layouts/Main/Main.stories.tsx b/web/components/layouts/Main/Main.stories.tsx
index b956238a25..b17c16e053 100644
--- a/web/components/layouts/Main/Main.stories.tsx
+++ b/web/components/layouts/Main/Main.stories.tsx
@@ -36,6 +36,10 @@ export default {
},
} satisfies ComponentMeta<typeof Main>;
+// mock the Websocket to prevent ani webhook calls from being made in storybook
+// @ts-ignore
+window.WebSocket = () => {};
+
type StateInitializer = (mutableState: MutableSnapshot) => void;
const composeStateInitializers =