Socket
Socket
Sign inDemoInstall

mwc-browser

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "mwc-browser",
"version": "1.0.2",
"version": "1.0.3",
"description": "Manager-Workers communication between browser tabs",

@@ -5,0 +5,0 @@ "repository": {

@@ -54,5 +54,5 @@ # mwc-browser

const channelConnection = mwcBrowser<string>('my-channel-name', {
pingTimer: 500, // The time to make ping.
zombiesTimer: 500, // The time to search for zombie connection.
managerTimer: 1000, // The time to look for manager if possible.
pingTimer: 500, // The iterable time to make ping.
zombiesTimer: 500, // The iterable time to search for zombie channel connections.
managerTimer: 1000, // The iterable time to look for channel connection to be manager if possible.
maxLife: 3000, // The max life time to decide if channel connection is zombie if not responded.

@@ -70,5 +70,5 @@ isEmitMessageToSelf: false, // If you want to get the message you sent to your self from onMessage event.

channelConnection.id; // Channel UUID.
channelConnection.isManager; // If Channel is Manager.
channelConnection.numberOfConnections; // The number of current connections that connected to the same channel.
channelConnection.id; // Channel connection UUID.
channelConnection.isManager; // If Channel connection is Manager.
channelConnection.numberOfConnections; // The number of current channel connections that connected to the same channel.
```

@@ -75,0 +75,0 @@

@@ -23,2 +23,3 @@ "use strict";

window.localStorage.setItem(this.channelName, JSON.stringify(message));
window.localStorage.removeItem(this.channelName);
}

@@ -25,0 +26,0 @@ close() {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc