Skip to content

Commit

Permalink
Merge pull request #26 from josbert-m/fix/WebsocketStream
Browse files Browse the repository at this point in the history
Fix [Issue #25]
  • Loading branch information
alplabin authored May 30, 2024
2 parents 29758bd + 3b56c2e commit fc0cbf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/websocketStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fc0cbf6

Please sign in to comment.