setting up some socket stuff to record and such but not there fully yet
This commit is contained in:
@@ -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);
|
||||
}
|
||||
);
|
||||
}, []);
|
||||
}
|
||||
Reference in New Issue
Block a user