@experteam-mx/ngx-services 20.8.9 → 20.8.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -9461,11 +9461,11 @@ declare class WebSocketsService {
9461
9461
  */
9462
9462
  pub<T>(channel: Channel, eventName: string, data: T): Promise<boolean>;
9463
9463
  /**
9464
- * Subscribes to a specified channel, retrying multiple times upon failure.
9464
+ * Subscribes to a specified channel and resolves when Pusher reports success.
9465
9465
  *
9466
9466
  * @param {string} channelName - The name of the channel to be subscribed to.
9467
9467
  * @return {Promise<Channel>} A promise that resolves to the subscribed channel object if successful.
9468
- * @throws {Error} If the subscription fails after the maximum number of retry attempts.
9468
+ * @throws {Error} If the subscription fails.
9469
9469
  */
9470
9470
  channelSub(channelName: string): Promise<Channel>;
9471
9471
  /**
@@ -9486,9 +9486,14 @@ declare class WebSocketsService {
9486
9486
  * @return {Observable<T>} An observable that emits data from the unbound event callback.
9487
9487
  */
9488
9488
  eventUnbind<T>(channel: Channel, event: string): Observable<unknown>;
9489
+ /**
9490
+ * Unsubscribes from a channel by name.
9491
+ *
9492
+ * @param {string} channelName - The channel name previously passed to subscribe.
9493
+ */
9494
+ unsubscribe(channelName: string): void;
9489
9495
  private ensureConnected;
9490
9496
  private refreshChannelAuthHeader;
9491
- private wait;
9492
9497
  static ɵfac: i0.ɵɵFactoryDeclaration<WebSocketsService, never>;
9493
9498
  static ɵprov: i0.ɵɵInjectableDeclaration<WebSocketsService>;
9494
9499
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experteam-mx/ngx-services",
3
- "version": "20.8.9",
3
+ "version": "20.8.10",
4
4
  "description": "Angular common services for Experteam apps",
5
5
  "author": "Experteam Cía. Ltda.",
6
6
  "keywords": [