setting up some socket stuff to record and such but not there fully yet

This commit is contained in:
talksik
2022-03-22 16:07:23 -04:00
parent a5b2b10414
commit 50c4d2bda8
5 changed files with 106 additions and 7 deletions
@@ -0,0 +1,14 @@
import SocketChannels from "@nirvana/core/sockets/channels";
import { socket } from "../nirvanaApp";
import { useEffect } from "react";
export default function useSocketData() {
useEffect(() => {
socket.on(
SocketChannels.SEND_AUDIO_CLIP,
(relationshipId: string, audioChunks: any) => {
console.log(relationshipId);
console.log(audioChunks);
}
);
}, []);
}