Comparing version 1.4.3 to 1.4.4
@@ -7,2 +7,3 @@ // @ts-ignore | ||
let socketId = ""; | ||
let sessionId = ""; | ||
// Function to connect the socket | ||
@@ -41,2 +42,6 @@ | ||
socket.on("session", (id) => { | ||
sessionId = id; | ||
}); | ||
socket.on("connect_error", (error) => { | ||
@@ -86,3 +91,3 @@ reject(error); | ||
{ | ||
socketId: socketId, | ||
sessionId: sessionId, | ||
userRoute: `The user is in this route ${currentPath}`, | ||
@@ -89,0 +94,0 @@ }, |
@@ -7,3 +7,3 @@ { | ||
"name": "sockettwo", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"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
4903
152