Gestion nom de domaine websocket

This commit is contained in:
2024-12-17 01:19:00 +01:00
parent 409e13277e
commit 256f0b7684
3 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,5 @@
import { io } from 'socket.io-client'
export const socket = io("http://192.168.1.198:3000", {
export const socket = io(process.env.EXPO_PUBLIC_TRAINTRAPE_MOI_SERVER, {
reconnection: true,
})