retry multipliers
This commit is contained in:
parent
4cbc3d3aa1
commit
5d55cbb2ae
1 changed files with 2 additions and 0 deletions
|
|
@ -147,6 +147,7 @@ export const useStreamingStore = defineStore('streaming', {
|
|||
this.state = WSConnectionStatus.JOINED
|
||||
},
|
||||
onOpen() {
|
||||
this.retryMultiplier = 1
|
||||
this.subscribers.forEach(({ stream, et }) => {
|
||||
et.dispatchEvent(new StreamStateEvent('open'))
|
||||
})
|
||||
|
|
@ -207,6 +208,7 @@ export const useStreamingStore = defineStore('streaming', {
|
|||
)
|
||||
|
||||
this.state = WSConnectionStatus.CLOSED
|
||||
this.retryMultiplier = 1
|
||||
|
||||
this.subscribers.forEach(({ et }) => {
|
||||
et.dispatchEvent(new StreamStateEvent('close', closeEvent))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue