socket set up
This commit is contained in:
5
concord-client/src/socket.ts
Normal file
5
concord-client/src/socket.ts
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
import { io } from "socket.io-client";
|
||||||
|
|
||||||
|
const URL = import.meta.env.PROD === true ? undefined : "http://localhost:5173";
|
||||||
|
|
||||||
|
export const socket = io(URL);
|
||||||
Reference in New Issue
Block a user