From ff4dc83734aef932e20af97118e193f6618dfcbd Mon Sep 17 00:00:00 2001 From: Chigozirim Igweamaka Date: Sat, 8 Jun 2024 13:12:26 +0100 Subject: [PATCH] change new record event identifier --- client/src/App.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/App.js b/client/src/App.js index 3316413..bcf2e40 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -11,8 +11,8 @@ import "react-toastify/dist/ReactToastify.css"; import { MediaRecorder, register } from "extendable-media-recorder"; import { connect } from "extendable-media-recorder-wav-encoder"; -// var socket = io("http://localhost/"); -var socket = io("https://localport.online/"); +var socket = io("http://localhost:5000"); +// var socket = io("https://localport.online/"); function App() { const [stream, setStream] = useState(); @@ -184,7 +184,7 @@ function App() { }; if (sendRecordingRef.current) { - socket.emit("record", JSON.stringify(recordData)); + socket.emit("newRecording", JSON.stringify(recordData)); } }; });