mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 01:38:44 +00:00
polling has to be fast
This commit is contained in:
1 parent
e71b1c272b
commit
1f301c0f68
1 file changed
+5
-4
@@ -38,10 +38,11 @@ function openWebsocket(twitchUsername: string) {
|
||||
console.log('on error event', event);
|
||||
}
|
||||
|
||||
//setInterval(() => {
|
||||
// console.log('sending browser message to server on interval');
|
||||
// sock.send('interval trigger from browser');
|
||||
//}, 2000);
|
||||
// NB: This has a direct bearing on how fast the backend responds.
|
||||
// Increasing the delay will slow down the flow of events.
|
||||
setInterval(() => {
|
||||
sock.send('ping');
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
export { ObsLayerPage }
|
||||
Reference in new issue
Block a user