diff --git a/src/stores/socket.ts b/src/stores/socket.ts index 068460e..a3d582b 100644 --- a/src/stores/socket.ts +++ b/src/stores/socket.ts @@ -14,6 +14,7 @@ export const useSocketStore: StoreDefinition = defineStore('socket', { actions: { initConnection() { this.connection = io(config.server_endpoint, { + secure: !config.development, withCredentials: true, transports: ['websocket'], reconnectionAttempts: 5