From 33fc963da959c2446be59b707be9c7440cac5844 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filipe=20Caba=C3=A7o?= Date: Wed, 4 Dec 2024 22:28:31 +0000 Subject: [PATCH] fix: Access token callback can be null --- src/RealtimeClient.ts | 2 +- test/channel.test.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/RealtimeClient.ts b/src/RealtimeClient.ts index 069721a..ab619df 100755 --- a/src/RealtimeClient.ts +++ b/src/RealtimeClient.ts @@ -112,7 +112,7 @@ export default class RealtimeClient { message: [], } fetch: Fetch - accessToken: (() => Promise) | null = null + accessToken: (() => Promise) | null = null worker?: boolean workerUrl?: string workerRef?: Worker diff --git a/test/channel.test.ts b/test/channel.test.ts index af34274..f074870 100644 --- a/test/channel.test.ts +++ b/test/channel.test.ts @@ -1203,7 +1203,6 @@ describe('send', () => { const pushStub = sinon.stub(new_channel, '_push') new_channel.subscribe(async (status) => { - console.log(status) if (status === 'SUBSCRIBED') { subscribed = true await new_channel.send({ type: 'broadcast', event: 'test' }) @@ -1232,7 +1231,6 @@ describe('send', () => { const pushStub = sinon.stub(new_channel, '_push') new_channel.subscribe(async (status) => { - console.log(status) if (status === 'TIMED_OUT') { timed_out = true }