start gen ai logic

This commit is contained in:
Ishaan Dey
2024-05-02 00:00:35 -07:00
parent e6e5247a3d
commit 2b9576c3fe
2 changed files with 65 additions and 12 deletions

View File

@ -33,10 +33,10 @@ export default function EditorTerminal({ socket }: { socket: Socket }) {
if (!term) return
const onConnect = () => {
// console.log("Connected to server", socket.connected)
console.log("Connected to server", socket.connected)
setTimeout(() => {
socket.emit("createTerminal", { id: "testId" })
}, 500)
}, 2000)
}
const onTerminalResponse = (response: { data: string }) => {