getting some socket stuff set up on client and server
This commit is contained in:
@@ -5,6 +5,7 @@ import Login from "./pages/Login";
|
||||
import ProtectedRoute from "./components/ProtectedRoute";
|
||||
import { ReactQueryDevtools } from "react-query/devtools";
|
||||
import { RecoilRoot } from "recoil";
|
||||
import io from "socket.io-client";
|
||||
import testConnection from "@nirvana/core";
|
||||
|
||||
testConnection();
|
||||
@@ -12,6 +13,8 @@ testConnection();
|
||||
// Create a client
|
||||
export const queryClient = new QueryClient();
|
||||
|
||||
export const socket = io("http://localhost:5000");
|
||||
|
||||
function NirvanaApp() {
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user