change new record event identifier

This commit is contained in:
Chigozirim Igweamaka 2024-06-08 13:12:26 +01:00
parent 18fc55e9fd
commit ff4dc83734

View file

@ -11,8 +11,8 @@ import "react-toastify/dist/ReactToastify.css";
import { MediaRecorder, register } from "extendable-media-recorder"; import { MediaRecorder, register } from "extendable-media-recorder";
import { connect } from "extendable-media-recorder-wav-encoder"; import { connect } from "extendable-media-recorder-wav-encoder";
// var socket = io("http://localhost/"); var socket = io("http://localhost:5000");
var socket = io("https://localport.online/"); // var socket = io("https://localport.online/");
function App() { function App() {
const [stream, setStream] = useState(); const [stream, setStream] = useState();
@ -184,7 +184,7 @@ function App() {
}; };
if (sendRecordingRef.current) { if (sendRecordingRef.current) {
socket.emit("record", JSON.stringify(recordData)); socket.emit("newRecording", JSON.stringify(recordData));
} }
}; };
}); });