Skip to content

Commit

Permalink
keep existing API unchanged
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Jun 19, 2024
1 parent 5f551ae commit e3ee30e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/subscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,8 @@ export class Subscription extends (EventEmitter as new () => TypedEventEmitter<S
}

/** unsubscribe from a channel, keeping position state.*/
async unsubscribe() {
unsubscribe() {
this._unsubPromise = this._setUnsubscribed(unsubscribedCodes.unsubscribeCalled, 'unsubscribe called', true);
return this._unsubPromise;
}

/** publish data to a channel.*/
Expand Down

0 comments on commit e3ee30e

Please sign in to comment.