git gud
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-11-29 23:24:30 +05:30
parent b10639316e
commit 55aac72bd2

View File

@@ -125,7 +125,10 @@ export function NakamaProvider({ children }: { children: React.ReactNode }) {
setSession(newSession);
// create a socket (new Nakama 3.x signature)
const s = client.createSocket(undefined, undefined); // no SSL on localhost
const s = client.createSocket(
import.meta.env.VITE_WS_SSL === "true",
undefined
);
await s.connect(newSession, true);
setSocket(s);
socketRef.current = s;