[Solved] Client Disconnecting when writing


When I attempt to send data to the server, via


It instantly disconnects from the server without any error messages, I tried doing it with socket.writeUtf etc but I don’t understand why this is happening? Am I meant to format the message in a particular way? If so, why? It claims to take a string.

The server can send data to the client perfectly fine with no issues as well

Edit: Fixed

The issue wasn’t the client disconnecting because I was sending the data to the server, the server was receiving the data, but because it had not been properly interpreted so the server auto kicking the client!

1 Like