Comparing version 1.5.0 to 1.5.1
@@ -398,6 +398,6 @@ import { MessageEvent, Event, CloseEvent, ErrorEvent } from 'ws'; | ||
/** | ||
* Instantiates client. | ||
* Instantiates client and attempts to connect to IPC server. | ||
* | ||
* Connection to the IPC server is established when sending the first | ||
* message or by explicitly calling {@link connect}. | ||
* The client will automatically attempt to reconnect on disconnections, | ||
* configurable via {@link WmClientOptions.reconnectInterval}. | ||
*/ | ||
@@ -404,0 +404,0 @@ constructor(_options?: WmClientOptions | undefined); |
@@ -46,9 +46,11 @@ "use strict"; | ||
/** | ||
* Instantiates client. | ||
* Instantiates client and attempts to connect to IPC server. | ||
* | ||
* Connection to the IPC server is established when sending the first | ||
* message or by explicitly calling {@link connect}. | ||
* The client will automatically attempt to reconnect on disconnections, | ||
* configurable via {@link WmClientOptions.reconnectInterval}. | ||
*/ | ||
constructor(_options) { | ||
this._options = _options; | ||
this.connect().catch(() => { | ||
}); | ||
} | ||
@@ -55,0 +57,0 @@ DEFAULT_PORT = 6123; |
{ | ||
"name": "glazewm", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Library for inter-process communication (IPC) with GlazeWM.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -76,8 +76,10 @@ import { | ||
/** | ||
* Instantiates client. | ||
* Instantiates client and attempts to connect to IPC server. | ||
* | ||
* Connection to the IPC server is established when sending the first | ||
* message or by explicitly calling {@link connect}. | ||
* The client will automatically attempt to reconnect on disconnections, | ||
* configurable via {@link WmClientOptions.reconnectInterval}. | ||
*/ | ||
constructor(private _options?: WmClientOptions) {} | ||
constructor(private _options?: WmClientOptions) { | ||
this.connect().catch(() => {}); | ||
} | ||
@@ -84,0 +86,0 @@ /** |
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
77523
2358