recording and sending thru sockets and back but nothing being recorded

This commit is contained in:
talksik
2022-03-22 16:29:10 -04:00
parent 50c4d2bda8
commit 6e9311549a
6 changed files with 128 additions and 81 deletions
+11 -1
View File
@@ -70,7 +70,17 @@ io.on("connection", function (socket: any) {
/** User wants to send some update to a particular room */
socket.on(
SocketChannels.SEND_AUDIO_CLIP,
(relationshipId: string, data: any) => {}
(relationshipId: string, audioChunks: any) => {
console.log(`new audio chunks received..routing to appropriate room!`);
console.log(relationshipId);
console.log(audioChunks);
io.in(relationshipId).emit(
SocketChannels.SEND_AUDIO_CLIP,
relationshipId,
audioChunks
);
}
);
// tell everyone in a room when someone is starting to speak