cherrys This time, you're making your life way too complicated. getKeyValue isn't meant to be used the way you're doing it, because the function is not run as the getKeyValue's return value. It's just... run. You need to do this: getKeyValue("messages"+room,function(a){
msg=a
})
Also, rate limiting exists, but that's completely outside the scope of a chat. If your keyValue fetching just stops, it's probably that. You can check the inspect console, and if it is being rate limited, it will say so: "rate limit reached".