web socket keeps on disconnecting and connecting
Hi! Its my first time using web sockets. The first code snippet is my socket code. The second code snippet is where I create context to use in the
Thank you!
applyWSSHandler. My issue is that in my createContext function. When I try to use the getUser function, the socket keeps on connecting and disconnecting rapidly (like every few milliseconds). But the moment I remove that function, everything works fine. Any idea what could be issue? The create context has no issue without running the socket.Thank you!