reconnecting-websocket
Advanced tools
Comparing version 4.0.0-rc1 to 4.0.0-rc2
{ | ||
"name": "reconnecting-websocket", | ||
"version": "4.0.0-rc1", | ||
"version": "4.0.0-rc2", | ||
"description": "Reconnecting WebSocket", | ||
@@ -5,0 +5,0 @@ "main": "./dist/reconnecting-websocket-cjs.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) | ||
[![Coverage Status](https://coveralls.io/repos/github/pladaria/reconnecting-websocket/badge.svg?branch=master&v=1)](https://coveralls.io/github/pladaria/reconnecting-websocket?branch=master) | ||
@@ -13,3 +13,3 @@ WebSocket that will automatically reconnect if the connection is closed. | ||
* Multiplatform (Web, ServiceWorkers, Node.js, React Native) | ||
* Dependency free (does not depends on Window, DOM or any EventEmitter library) | ||
* Dependency free (does not depend on Window, DOM or any EventEmitter library) | ||
* Handle connection timeouts | ||
@@ -86,4 +86,4 @@ * Full test coverage | ||
```javascript | ||
const ReconnectingWebSocket = require('reconnecting-websocket'); | ||
const WS = require('ws'); | ||
import ReconnectingWebSocket from 'reconnecting-websocket'; | ||
import WS from 'ws'; | ||
@@ -148,3 +148,3 @@ const options = { | ||
binaryType: string; | ||
bufferedAmount: number; // read only | ||
bufferedAmount: number; | ||
extensions: string; | ||
@@ -156,4 +156,5 @@ onclose: EventListener; | ||
protocol: string; | ||
readyState: number; // read only | ||
url: string; // read only | ||
readyState: number; | ||
url: string; | ||
retryCount: number; | ||
``` | ||
@@ -160,0 +161,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
174
0
80067