diff --git a/src/echo.ts b/src/echo.ts index 6777ea0f..61bc84a9 100644 --- a/src/echo.ts +++ b/src/echo.ts @@ -59,12 +59,19 @@ export default class Echo { } /** - * Leave the given channel. + * Leave the given channel, as well as its private and presence variants. */ leave(channel: string): void { this.connector.leave(channel); } + /** + * Leave the given channel. + */ + leaveChannel(channel: string): void { + this.connector.leaveChannel(channel); + } + /** * Listen for an event on a channel instance. */