Pass access token as param to /api/v1/streaming

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-08-04 17:24:08 +02:00
parent 963ffb3d45
commit 08c4d9037e

View file

@ -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);