@aurox/persistent-websocket-connection
Advanced tools
Comparing version 0.0.1 to 0.1.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
const isomorphic_ws_1 = tslib_1.__importDefault(require("isomorphic-ws")); | ||
const defaults_1 = require("./defaults"); | ||
@@ -187,3 +189,3 @@ class PersistentWebsocketConnection { | ||
this.logger.debug(`Attempting to connect to ${this.url}.`); | ||
this.connection = new WebSocket(this.url); | ||
this.connection = new isomorphic_ws_1.default(this.url); | ||
this.connection.onopen = this.handleOpen; | ||
@@ -190,0 +192,0 @@ this.connection.onmessage = this.handleMessage; |
@@ -0,1 +1,2 @@ | ||
import { MessageEvent } from 'ws'; | ||
export interface PersistentWebsocketConnectionPingPongOptions { | ||
@@ -2,0 +3,0 @@ enabled: boolean; |
{ | ||
"name": "@aurox/persistent-websocket-connection", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"description": "Aurox Persistent Websocket Connection", | ||
@@ -8,3 +8,3 @@ "main": "dist/index.js", | ||
"scripts": { | ||
"prepublishOnly": "npm test && npm run build", | ||
"prepublishOnly": "npm run build", | ||
"build": "npm run clean && tsc", | ||
@@ -29,4 +29,7 @@ "clean": "rimraf ./dist" | ||
"@types/node": "^12.7.5", | ||
"tslib": "^1.10.0" | ||
"@types/ws": "^6.0.3", | ||
"isomorphic-ws": "^4.0.1", | ||
"tslib": "^1.10.0", | ||
"ws": "^7.1.2" | ||
} | ||
} |
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
16602
348
5
+ Added@types/ws@^6.0.3
+ Addedisomorphic-ws@^4.0.1
+ Addedws@^7.1.2
+ Added@types/ws@6.0.4(transitive)
+ Addedisomorphic-ws@4.0.1(transitive)
+ Addedws@7.5.10(transitive)