Comparing version 1.1.7 to 1.1.8
12
index.js
@@ -10,9 +10,9 @@ const io = require("socket.io-client"); | ||
try { | ||
const status = socket.on("connect", () => { | ||
socket.on("connect", () => { | ||
return true; | ||
}); | ||
if (status()) { | ||
return currentRoute; | ||
} | ||
// if (status()) { | ||
// return currentRoute; | ||
// } | ||
} catch (error) { | ||
@@ -22,3 +22,5 @@ return false; | ||
return () => socket.disconnect(); | ||
return currentRoute; | ||
// return () => socket.disconnect(); | ||
} | ||
@@ -25,0 +27,0 @@ |
@@ -6,3 +6,3 @@ { | ||
"name": "sockettwo", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"main": "index.js", | ||
@@ -9,0 +9,0 @@ "devDependencies": {}, |
1893
64