Relative Content

Tag Archive for javascriptwebwebsocketdiscordclient-side

Trying to figure out how to keep a heartbeat interval open from javascript to discord on a website to read messages?

I’m new to javascript development and I’m testing something where it can read messages on a certain discord server. The code I have now works for like 3 seconds when the website opens. I’m not sure what I’m doing wrong but I know the heartbeat interval isn’t working as it should. I’m getting bnack code op = 0 and so the case nmumber isn’t switching to 10. I got the code from someone else on a different question and I changed a few things so that it would work on my end. Here’s the current code.