From 5fba3b42c53729c4c78a2c839eef42b06afc2c50 Mon Sep 17 00:00:00 2001 From: Joel Mathew Thomas <90510078+joelmathewthomas@users.noreply.github.com> Date: Wed, 19 Mar 2025 23:50:29 +0530 Subject: [PATCH] change ws url --- api/api/routing.py | 2 +- client/src/contexts/WebSocketContext.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/api/routing.py b/api/api/routing.py index 4819fc2..dee36fb 100644 --- a/api/api/routing.py +++ b/api/api/routing.py @@ -3,5 +3,5 @@ from django.urls import path from . import consumers websocket_urlpatterns= [ - path("ws/media/", consumers.MediaConsumer.as_asgi()), + path("ws/freqsplit/", consumers.MediaConsumer.as_asgi()), ] \ No newline at end of file diff --git a/client/src/contexts/WebSocketContext.tsx b/client/src/contexts/WebSocketContext.tsx index 7f6d1ac..c345a18 100644 --- a/client/src/contexts/WebSocketContext.tsx +++ b/client/src/contexts/WebSocketContext.tsx @@ -1,6 +1,6 @@ import React, { createContext, useContext, useEffect, useState } from "react"; -const WEBSOCKET_URL = "ws://localhost:8000/ws/media/"; +const WEBSOCKET_URL = "ws://localhost:8000/ws/freqsplit/"; interface WebSocketContextType { socket: WebSocket | null;