]> Repos - mime-chat/commitdiff
fix connection timeout issue
authorEnrique Hernandez <enrique.hernandez@fii-usa.com>
Thu, 11 Feb 2021 22:49:03 +0000 (16:49 -0600)
committerEnrique Hernandez <hernandeze2@xavier.edu>
Thu, 11 Feb 2021 22:58:26 +0000 (16:58 -0600)
src/background/session.ts

index 6fb80ebcf754aac3e48b2df1b7aeb488d8ef0152..8fba6588869bd95f6260cf4d96f1b03c7a588726 100644 (file)
@@ -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;