Comparing version 1.3.2 to 1.3.3
@@ -6,3 +6,3 @@ // @ts-ignore | ||
let isConnectedToSocket = false; | ||
let socketId = null; | ||
let socketId = ''; | ||
// Function to connect the socket | ||
@@ -21,5 +21,6 @@ | ||
try { | ||
socket.on("connect", () => { | ||
socketId = socket.id; | ||
isConnectedToSocket = true; | ||
socketId = socket.id; | ||
}); | ||
@@ -33,2 +34,4 @@ | ||
const same = new Promise(); | ||
// function to disconnect the socket | ||
@@ -35,0 +38,0 @@ function disconnectSocket(url) { |
@@ -7,3 +7,3 @@ { | ||
"name": "sockettwo", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"main": "index.js", | ||
@@ -10,0 +10,0 @@ "scripts": { |
4347
134