revert: socket change

This commit is contained in:
Mar0xy 2023-09-27 22:06:58 +02:00
parent 1fe51a870b
commit 2cea136458
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.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()
})