Added Connection Component, Store, JWT logic

This commit is contained in:
PxlLoewe
2025-03-14 19:46:09 -07:00
parent d7e4ae468d
commit abf3475c7c
9 changed files with 65 additions and 21 deletions

View File

@@ -1,7 +1,5 @@
import { io } from "socket.io-client";
export const socket = io(process.env.NEXT_PUBLIC_DISPATCH_SERVER_URL, {
auth: (cb) => {
cb({ token: "jwt" });
},
autoConnect: false,
});