diff options
| author | Mar0xy <marie@kaifa.ch> | 2023-09-27 22:06:58 +0200 |
|---|---|---|
| committer | Mar0xy <marie@kaifa.ch> | 2023-09-27 22:06:58 +0200 |
| commit | 2cea1364584bff743bbe6094ad4f25dae3c2dfbc (patch) | |
| tree | fd1e6ef852170dd40a0f9c4b3657ddae8f475955 | |
| parent | upd: make sure megalodon uses proper streaming url (diff) | |
| download | sharkey-2cea1364584bff743bbe6094ad4f25dae3c2dfbc.tar.gz sharkey-2cea1364584bff743bbe6094ad4f25dae3c2dfbc.tar.bz2 sharkey-2cea1364584bff743bbe6094ad4f25dae3c2dfbc.zip | |
revert: socket change
| -rw-r--r-- | packages/megalodon/src/misskey/api_client.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/megalodon/src/misskey/api_client.ts b/packages/megalodon/src/misskey/api_client.ts index d8bc99779d..6582cf3e77 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.replace('/api/v1/streaming', ''), channel, this.accessToken, listId, this.userAgent, this.proxyConfig) + const streaming = new WebSocket(url, channel, this.accessToken, listId, this.userAgent, this.proxyConfig) process.nextTick(() => { streaming.start() }) |