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;