WebSocket Chat Application: Messages Not Displaying Properly
The problem is on WebSocket chat application where users can send messages and files. The messages are sent as JSON objects containing the sender’s name and the message content. However, when displaying the messages, the output includes the surrounding {} and “sender”: and “message”:, which I don’t want.