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