Fix retry, remove debug logs
This commit is contained in:
@@ -406,7 +406,7 @@ export class MessagesEventBus {
|
||||
exception: e,
|
||||
code: MessagesEventBusErrorCode.PollFailed,
|
||||
retry: () => {
|
||||
this.init()
|
||||
this.dispatch({event: MessagesEventBusDispatchEvent.Resume})
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
@@ -42,17 +42,6 @@ export function Temp_MessagesEventBusProvider({
|
||||
if (isWeb && IS_DEV) {
|
||||
// @ts-ignore
|
||||
window.bus = bus
|
||||
setTimeout(() => {
|
||||
bus.trail(events => {
|
||||
console.log(events)
|
||||
})
|
||||
bus.onConnect(() => {
|
||||
console.log('CONNECT')
|
||||
})
|
||||
bus.onError(e => {
|
||||
console.log('ERROR', e)
|
||||
})
|
||||
}, 4000)
|
||||
}
|
||||
}, [bus])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user