added chat

This commit is contained in:
1ilit
2023-09-19 15:50:57 +03:00
parent be0ec46e4b
commit 274c434206
8 changed files with 209 additions and 59 deletions

7
src/data/socket.js Normal file
View File

@@ -0,0 +1,7 @@
import { io } from "socket.io-client";
const URL = "http://localhost:5000";
export const socket = io(URL, {
autoConnect: false,
});