Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ getSubscription returns `Subscription` if it's registered in the internal regist

`removeSubscription(sub: Subscription | null)`

removeSubscription allows removing Subcription from the internal registry. Subscrption must be in unsubscribed state.
removeSubscription allows removing Subcription from the internal registry.

### subscriptions

Expand Down
3 changes: 1 addition & 2 deletions src/centrifuge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,7 @@ export class Centrifuge extends (EventEmitter as new () => TypedEventEmitter<Cli
return this._getSub(channel);
}

/** removeSubscription allows removing Subcription from the internal registry. Subscrption
* must be in unsubscribed state. */
/** removeSubscription allows removing Subcription from the internal registry. */
removeSubscription(sub: Subscription | null) {
if (!sub) {
return;
Expand Down