mirror of
https://github.com/plausible/analytics.git
synced 2024-11-23 11:12:15 +03:00
Set socket interval for hearbeats to 10s (#3091)
This commit is contained in:
parent
ff11b3f26d
commit
21a968ef2c
@ -9,6 +9,7 @@ if (csrfToken && websocketUrl) {
|
||||
let url = websocketUrl.getAttribute("content")
|
||||
let liveUrl = (url === "") ? "/live" : new URL("/live", url).href;
|
||||
let liveSocket = new LiveSocket(liveUrl, Socket, {
|
||||
heartbeatIntervalMs: 10000,
|
||||
params: { _csrf_token: token }, hooks: {}, dom: {
|
||||
// for alpinejs integration
|
||||
onBeforeElUpdated(from, to) {
|
||||
|
Loading…
Reference in New Issue
Block a user