Created the socket.js

This commit is contained in:
2023-11-18 19:33:03 +01:00
parent 495d18ae09
commit 3f4e89abb9

View File

@ -0,0 +1,5 @@
import { io } from 'socket.io-client';
const URL = process.env.NODE_ENV === "production" ? "https://pmg-api.gnmyt.dev" : "http://localhost:3000";
export const socket = io(URL);