Created the socket.js

This commit is contained in:
Mathias committed 2023-11-18 19:33:03 +01:00
1 parent 495d18ae09
commit 3f4e89abb9
1 file changed
+5
+5
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);