Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@borodindmitriy/base-code

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@borodindmitriy/base-code - npm Package Compare versions

Comparing version
4.0.4
to
4.0.5
+1
-1
lib/front/WSClient.d.ts

@@ -15,3 +15,3 @@ import { EventEmitter } from "../isomorphic/EventEmitter";

private headrBeatInterval;
constructor(path?: string, TLS?: boolean, pingPongDelay?: number, reconnectionDelay?: number);
constructor(host?: string, path?: string, TLS?: boolean, pingPongDelay?: number, reconnectionDelay?: number);
readonly isOpen: boolean;

@@ -18,0 +18,0 @@ setUserID(uid: string): void;

@@ -10,3 +10,3 @@ "use strict";

class WSClient extends EventEmitter_1.EventEmitter {
constructor(path = "ws", TLS = true, pingPongDelay = 1000, reconnectionDelay = 5000) {
constructor(host = window.location.host, path = "ws", TLS = true, pingPongDelay = 1000, reconnectionDelay = 5000) {
super();

@@ -17,3 +17,3 @@ this.readyState = WebSocket.CLOSED;

this.uid = "";
this.path = `${TLS ? "wss" : "ws"}://${window.location.host}/${path}`;
this.path = `${TLS ? "wss" : "ws"}://${host}/${path}`;
// IS_ALIVE

@@ -20,0 +20,0 @@ this.pingPongDelay = pingPongDelay;

{
"name": "@borodindmitriy/base-code",
"description": "Common classes's library.",
"version": "4.0.4",
"version": "4.0.5",
"engines": {

@@ -6,0 +6,0 @@ "node": ">=8",