Closed jogoool closed 11 months ago
client disconnect and re-connect after 45 second I'm using redux-saga channel to handle the messages
const eventSource = yield call(mercureSubscribe, new URL(HUB_URL), [topic]) const channel = yield call(mercureChannel, eventSource)
function mercureChannel(eventSource) { return eventChannel((emitter) => { eventSource.addEventListener('message', (event) => emitter(JSON.parse(event.data)), ) return () => eventSource.close() }) }
client disconnect and re-connect after 45 second I'm using redux-saga channel to handle the messages