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