You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an application composed of three parts. The first part is the Server websocket where websocket clients connect. The second part is a client (NextJs), and the third part is a client (Java) that connects to the server websocket. I use Socket.io for synchronizing the Java client and the NextJs client with the server websocket. Data between these two clients is synchronized every 0.5 seconds through the Connection Server Websocket.
The issue arises when the volume of data sent from the Java client to the Server Websocket becomes excessive. At this point, the Server is unable to handle additional data (Ping, Pong) to determine whether the Java client is still online or not, resulting in the disconnection of the Java client. I wanted to find a solution within the Server Socket.io to handle this data volume and prevent disconnection of the Java client.
It seems that when the data volume increases, the server websocket lacks the capability to send Ping/Pong messages, leading to difficulties in managing this issue. I am in need of a solution to address this problem within the Server Socket.io.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have an application composed of three parts. The first part is the Server websocket where websocket clients connect. The second part is a client (NextJs), and the third part is a client (Java) that connects to the server websocket. I use Socket.io for synchronizing the Java client and the NextJs client with the server websocket. Data between these two clients is synchronized every 0.5 seconds through the Connection Server Websocket.
The issue arises when the volume of data sent from the Java client to the Server Websocket becomes excessive. At this point, the Server is unable to handle additional data (Ping, Pong) to determine whether the Java client is still online or not, resulting in the disconnection of the Java client. I wanted to find a solution within the Server Socket.io to handle this data volume and prevent disconnection of the Java client.
It seems that when the data volume increases, the server websocket lacks the capability to send Ping/Pong messages, leading to difficulties in managing this issue. I am in need of a solution to address this problem within the Server Socket.io.
Socket.io Server: Version 4.7.4
Socket.io NextJs Client: Version 4.7.4
SocketIo Java Client: Version 2.1.0
My Source Code: GitHub Repository
Beta Was this translation helpful? Give feedback.
All reactions