Merge pull request #641 from h3poteto/fix/protocol/websocket
Fix protocol of websocket in streaming
This commit is contained in:
commit
a0fd3be59b
|
@ -4,9 +4,10 @@ import log from 'electron-log'
|
|||
export default class WebSocket {
|
||||
constructor (account) {
|
||||
this.account = account
|
||||
const url = account.baseURL.replace(/^https:\/\//, 'wss://')
|
||||
this.client = new Mastodon(
|
||||
account.accessToken,
|
||||
account.baseURL + '/api/v1'
|
||||
url + '/api/v1'
|
||||
)
|
||||
this.listener = null
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue