Authenticate and subscribe to streaming after connection

This commit is contained in:
tusooa 2024-10-19 13:42:04 -04:00
commit dfbc2704d8
No known key found for this signature in database
GPG key ID: 42AEC43D48433C51
4 changed files with 70 additions and 18 deletions

View file

@ -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]) => {