This commit is contained in:
@@ -48,9 +48,10 @@ export const NakamaContext = createContext<NakamaContextType>(null!);
|
|||||||
export function NakamaProvider({ children }: { children: React.ReactNode }) {
|
export function NakamaProvider({ children }: { children: React.ReactNode }) {
|
||||||
const [client] = useState(
|
const [client] = useState(
|
||||||
() => new Client(
|
() => new Client(
|
||||||
import.meta.env.VITE_WS_SKEY,
|
import.meta.env.VITE_SERVER_KEY,
|
||||||
import.meta.env.VITE_WS_HOST,
|
import.meta.env.VITE_WS_HOST,
|
||||||
import.meta.env.VITE_WS_PORT
|
import.meta.env.VITE_WS_PORT,
|
||||||
|
import.meta.env.VITE_WS_SSL === "true"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user