Skip to content

Commit

Permalink
Merge pull request #166 from ijun17/dev-fe
Browse files Browse the repository at this point in the history
μ†ŒμΌ“ μ„€μ • μˆ˜μ •
  • Loading branch information
ijun17 authored Nov 6, 2024
2 parents 7d322ff + 80327a7 commit a321df3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions FE/src/api/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());
});
}

Expand Down Expand Up @@ -75,4 +75,4 @@ class SocketService {
}
}

export const socketService = new SocketService('');
export const socketService = new SocketService('http://quizground.duckdns.org:3000/game');

0 comments on commit a321df3

Please sign in to comment.