From 08c4d9037eb46656192ff590f7afa4061b638309 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sun, 4 Aug 2024 17:24:08 +0200 Subject: [PATCH] Pass access token as param to /api/v1/streaming MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- src/stream.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stream.ts b/src/stream.ts index 7afe7c39d..195e4c3e2 100644 --- a/src/stream.ts +++ b/src/stream.ts @@ -103,7 +103,7 @@ const getStream = ( reconnected: ((this: WebSocket, ev: Event) => any); }, ) => { - const params = [ `stream=${stream}` ]; + const params = [ `access_token=${accessToken}`, `stream=${stream}` ]; const ws = new WebSocketClient(`${streamingAPIBaseURL}/api/v1/streaming/?${params.join('&')}`, accessToken as any);