Closed karth295 closed 7 years ago
This was an issue with statebus that seems to have been fixed in statebus v4. This script used to reproduce the issue, but does not anymore:
<script type="statebus">
timeout = null
touched = false
bad = false
bus.honk = true
dom.BODY = ->
if bad then return DIV('That was BAD!!')
connections = fetch('/connections')
my_conn = fetch('/connection')
if @loading() then return DIV {}, 'Loading...'
console.warn("rendering /connection: #{JSON.stringify(my_conn)}, /connections: #{JSON.stringify(connections)}")
if not my_conn.mine.touchme
if touched
bad = true
clearTimeout(timeout); timeout = 'none'
return DIV('That was BAD!!!')
touched = true
my_conn.mine.touchme = 'touched'
save(my_conn)
console.log("Saving /connection", JSON.stringify(my_conn))
DIV {},
"That was ok. Let's reload."
timeout = timeout or setTimeout((->window.location.reload()), 500)
</script>
<script>
statebus_server = 'https://tawk.space:3004'
</script>
<script src="https://stateb.us/client.js" ></script>
The symptom is that you're local stream always has the spinner gif, and never loads. If you're the first person in the space, you start in your own group, then magically get kicked out back to the topbar (
me.group
gets set tonull
somehow).I thought 9d48d3334e72c1ea85a74e39c8d620c9fb10f584 would fix this, but I still occasionally (like 1/20 times) still see it.