fix connection timeout issue
This commit is contained in:
parent
79b45d4005
commit
d27652861b
1 changed files with 2 additions and 2 deletions
|
|
@ -23,8 +23,8 @@ interface TextMessage {
|
|||
content: string;
|
||||
}
|
||||
|
||||
const ip = 'ws://localhost';
|
||||
const port = 8080;
|
||||
const ip = 'ws://127.0.0.1';
|
||||
const port = 8081;
|
||||
const reconnectTimeout = 3000; //ms
|
||||
let socket: WebSocket;
|
||||
let success = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue