Comparing version 1.1.3 to 1.1.4
@@ -37,4 +37,7 @@ const io = require("socket.io-client"); | ||
async function emitContent(emitBody) { | ||
const currentRoute = window.location.pathname; | ||
try { | ||
const status = await socket.emit("track", emitBody, () => { | ||
console.log("The user are in :" + currentRoute); | ||
return "Emitted!"; | ||
@@ -41,0 +44,0 @@ }); |
@@ -6,3 +6,3 @@ { | ||
"name": "sockettwo", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"main": "index.js", | ||
@@ -9,0 +9,0 @@ "devDependencies": {}, |
1857
61