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

reconnecting-websocket

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reconnecting-websocket - npm Package Compare versions

Comparing version 3.0.5 to 3.0.6

2

package.json
{
"name": "reconnecting-websocket",
"version": "3.0.5",
"version": "3.0.6",
"description": "Reconnecting WebSocket",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

# Reconnecting WebSocket
[![Build Status](https://travis-ci.org/pladaria/reconnecting-websocket.svg?branch=master)](https://travis-ci.org/pladaria/reconnecting-websocket)
[![Coverage Status](https://coveralls.io/repos/github/pladaria/reconnecting-websocket/badge.svg?branch=master)](https://coveralls.io/github/pladaria/reconnecting-websocket?branch=master)
WebSocket that will automatically reconnect if the connection is closed.

@@ -122,3 +125,3 @@

const options = {constructor: Html5WebSocket};
const ws = new WebSocket('ws://my.site.com', null, options);
const ws = new WebSocket('ws://my.site.com', undefined, options);
```

@@ -135,3 +138,3 @@

const ws = new WebSocket('ws://my.site.com', null, {maxRetries: 3});
const ws = new WebSocket('ws://my.site.com', undefined, {maxRetries: 3});
ws.onerror = (err) => {

@@ -138,0 +141,0 @@ if (err.code === 'EHOSTDOWN') {

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