Reconnect on failure, with backoff; Deduping notifications
This commit is contained in:
parent
3fac1c3432
commit
1536201e9a
6 changed files with 62 additions and 45 deletions
|
@ -1,5 +1,5 @@
|
|||
export const topicUrl = (baseUrl, topic) => `${baseUrl}/${topic}`;
|
||||
export const topicUrlWs = (baseUrl, topic) => `${topicUrl(baseUrl, topic)}/ws`
|
||||
export const topicUrlWs = (baseUrl, topic, since) => `${topicUrl(baseUrl, topic)}/ws?since=${since}`
|
||||
.replaceAll("https://", "wss://")
|
||||
.replaceAll("http://", "ws://");
|
||||
export const topicUrlJson = (baseUrl, topic) => `${topicUrl(baseUrl, topic)}/json`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue