@matrixai/ws
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -22,3 +22,3 @@ import type { WebSocketClientConfigInput } from './types'; | ||
*/ | ||
declare class WebSocketClient extends EventTarget { | ||
declare class WebSocketClient { | ||
/** | ||
@@ -25,0 +25,0 @@ * Creates a WebSocketClient |
@@ -61,4 +61,4 @@ "use strict"; | ||
*/ | ||
let WebSocketClient = class WebSocketClient extends EventTarget { | ||
static async createWebSocketClient({ host, port, config, resolveHostname = utils.resolveHostname, logger = new logger_1.default(`${this.name}`), }, ctx) { | ||
let WebSocketClient = class WebSocketClient { | ||
static async createWebSocketClient({ host, port, config, resolveHostname = utils.resolveHostname, reasonToCode, codeToReason, logger = new logger_1.default(`${this.name}`), }, ctx) { | ||
logger.info(`Create ${this.name} to ${host}:${port}`); | ||
@@ -91,2 +91,4 @@ const wsConfig = { | ||
socket: webSocket, | ||
reasonToCode, | ||
codeToReason, | ||
logger: logger.getChild(`${WebSocketConnection_1.default.name} ${connectionId}`), | ||
@@ -200,3 +202,2 @@ }); | ||
constructor({ address, logger, connection, }) { | ||
super(); | ||
this.address = address; | ||
@@ -203,0 +204,0 @@ this.logger = logger; |
{ | ||
"name": "@matrixai/ws", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"author": "Matrix AI", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
286945
4610