From 2af3c77fad53d156107a3b1da215344a7ee63b81 Mon Sep 17 00:00:00 2001 From: ijun17 Date: Wed, 6 Nov 2024 11:18:22 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=86=8C=EC=BC=93=20url=20=EC=9E=85?= =?UTF-8?q?=EB=A0=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FE/src/api/socket.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FE/src/api/socket.ts b/FE/src/api/socket.ts index b2967e9..38c33cb 100644 --- a/FE/src/api/socket.ts +++ b/FE/src/api/socket.ts @@ -34,8 +34,8 @@ class SocketService { connect() { this.socket = io(this.url); return new Promise((resolve, reject) => { - this.socket.on('connect', () => resolve); - this.socket.on('error', () => reject); + this.socket.on('connect', () => resolve(null)); + this.socket.on('error', () => reject()); }); } @@ -75,4 +75,4 @@ class SocketService { } } -export const socketService = new SocketService(''); +export const socketService = new SocketService('http://quizground.duckdns.org:3000/game');