Authenticate and subscribe to streaming after connection
This commit is contained in:
parent
cf7fab7103
commit
dfbc2704d8
4 changed files with 70 additions and 18 deletions
|
|
@ -36,8 +36,8 @@ const backendInteractorService = credentials => ({
|
|||
|
||||
startUserSocket ({ store }) {
|
||||
const serv = store.rootState.instance.server.replace('http', 'ws')
|
||||
const url = serv + getMastodonSocketURI({ credentials, stream: 'user' })
|
||||
return ProcessedWS({ url, id: 'User' })
|
||||
const url = getMastodonSocketURI({}, serv)
|
||||
return ProcessedWS({ url, id: 'Unified', credentials })
|
||||
},
|
||||
|
||||
...Object.entries(apiService).reduce((acc, [key, func]) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue