upd: make sure megalodon uses proper streaming url

This commit is contained in:
Mar0xy 2023-09-27 22:01:47 +02:00
parent e17dcd7814
commit 1fe51a870b
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828

View file

@ -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()
})