From 1fe51a870b243036ea1a029aea56ccccb3c64d92 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Wed, 27 Sep 2023 22:01:47 +0200 Subject: [PATCH] upd: make sure megalodon uses proper streaming url --- packages/megalodon/src/misskey/api_client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/megalodon/src/misskey/api_client.ts b/packages/megalodon/src/misskey/api_client.ts index 6582cf3e77..d8bc99779d 100644 --- a/packages/megalodon/src/misskey/api_client.ts +++ b/packages/megalodon/src/misskey/api_client.ts @@ -652,7 +652,7 @@ namespace MisskeyAPI { throw new Error('accessToken is required') } const url = this.baseUrl + '/streaming' - const streaming = new WebSocket(url, channel, this.accessToken, listId, this.userAgent, this.proxyConfig) + const streaming = new WebSocket(url.replace('/api/v1/streaming', ''), channel, this.accessToken, listId, this.userAgent, this.proxyConfig) process.nextTick(() => { streaming.start() })