WebSocket server echoes messages to wscat but not to JavaScript client
I’m working on a project where a C-based WebSocket server needs to communicate with a JavaScript client to change the color of an SVG element. The server should send messages to the JavaScript client when it receives commands from wscat. However, I’m facing an issue where the server echoes the messages back to wscat instead of the JavaScript client.