diff --git a/src/websocketStream.ts b/src/websocketStream.ts index 1c64cc8..31cda06 100644 --- a/src/websocketStream.ts +++ b/src/websocketStream.ts @@ -20,7 +20,7 @@ export class WebsocketStream extends WebsocketStreamFeaturesBase { subscribe(stream: string | string[]) { if (!this.isConnected()) { - if (Array.isArray(stream)) stream = stream.toString().replace(',', '/'); + if (Array.isArray(stream)) stream = stream.join('/'); const url = this._prepareURL(stream); this.initConnect(url); } else {