Socket.io
how does it work that sometimes sockets work just fine but sometimes it just stops working at all? Even though everything looks correct?
8 Replies
Backend:
I map the array in this component like this:
source is useContext that imports those useStates
It should obviously work but it's not working 😄
can someone help?
Edit:
on frontend code I added
but it's not happening
that's what I get in the end
Can you provide a link to the repo with your code? It's most likely a configuration issue either in your project or your server but without access to the whole code (or a reproduction of the issue) it's hard to say anything
GitHub
GitHub - GeorgeBazerashvili/chat-REST
Contribute to GeorgeBazerashvili/chat-REST development by creating an account on GitHub.
here is back
GitHub
GitHub - GeorgeBazerashvili/chat-CLIENT
Contribute to GeorgeBazerashvili/chat-CLIENT development by creating an account on GitHub.
and that's front
well cors was pointed to the localHost before and defaultURL was pointed to localhost of backend
also I get this error on back:
"Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client"