I have encountered an issue with my Java server and JavaScript websocket client. Despite trying various solutions from this site, I am still unable to resolve the problem. So, I decided to share my code here in hopes of getting some assistance.
The problem arises when I try to send information from the server to the client or vice versa. Nothing seems to happen on either end. Can someone please help me debug this issue?
Below is the snippet of my server-side code:
(Java code goes here...)
As for my client-side code, here it is:
(HTML/JavaScript code goes here...)
Your assistance in resolving this matter would be greatly appreciated. Thank you!