Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sockettwo

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sockettwo - npm Package Compare versions

Comparing version 1.1.6 to 1.1.7

6

index.js

@@ -6,11 +6,11 @@ const io = require("socket.io-client");

// Function to connect the socket
async function connectSocket(url) {
function connectSocket(url) {
socket = io(url);
const currentRoute = window.location.pathname;
try {
const status = await socket.on("connect", () => {
const status = socket.on("connect", () => {
return true;
});
if (status) {
if (status()) {
return currentRoute;

@@ -17,0 +17,0 @@ }

@@ -6,3 +6,3 @@ {

"name": "sockettwo",
"version": "1.1.6",
"version": "1.1.7",
"main": "index.js",

@@ -9,0 +9,0 @@ "devDependencies": {},

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc