Comparing version 1.1.2 to 1.1.3
const io = require("socket.io-client"); | ||
// const SConnect = require("./Services/socketConnect"); | ||
let socket = null; | ||
// Function to connect the socket | ||
function connectSocket(url) { | ||
const socket = io(url); | ||
socket = io(url); | ||
@@ -21,3 +22,3 @@ try { | ||
function disconnectSocket(url) { | ||
const socket = io(url); | ||
socket = io(url); | ||
@@ -38,3 +39,3 @@ try { | ||
try { | ||
const status = await socket.emit("track", emitBody, (response) => { | ||
const status = await socket.emit("track", emitBody, () => { | ||
return "Emitted!"; | ||
@@ -41,0 +42,0 @@ }); |
@@ -6,3 +6,3 @@ { | ||
"name": "sockettwo", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"main": "index.js", | ||
@@ -9,0 +9,0 @@ "devDependencies": {}, |
59