Comparing version 1.3.9 to 1.4.0
@@ -20,8 +20,10 @@ // @ts-ignore | ||
let IsConnected = false; | ||
socket.on("connect", () => { | ||
socketId = socket.id; | ||
isConnectedToSocket = true; | ||
IsConnected = true; | ||
}); | ||
setTimeout(() => { | ||
return isConnectedToSocket ? "Socket Connected!" : "Socket not connected!"; | ||
return IsConnected ? "Socket Connected!" : "Socket not connected!"; | ||
}, 1000); | ||
@@ -28,0 +30,0 @@ } |
@@ -7,3 +7,3 @@ { | ||
"name": "sockettwo", | ||
"version": "1.3.9", | ||
"version": "1.4.0", | ||
"main": "index.js", | ||
@@ -10,0 +10,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4458
137