From 55aac72bd27b45835e3ef09fcebc03a8e2689320 Mon Sep 17 00:00:00 2001 From: Vishesh 'ironeagle' Bangotra Date: Sat, 29 Nov 2025 23:24:30 +0530 Subject: [PATCH] git gud --- src/tictactoe/providers/NakamaProvider.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tictactoe/providers/NakamaProvider.tsx b/src/tictactoe/providers/NakamaProvider.tsx index cc8d412..96ede95 100644 --- a/src/tictactoe/providers/NakamaProvider.tsx +++ b/src/tictactoe/providers/NakamaProvider.tsx @@ -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;