reconnecting-websocket
Advanced tools
Comparing version 3.0.5 to 3.0.6
{ | ||
"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') { |
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
32154
148