ok, then I will do this:
1.- Separate the render of the , the event handler and networking code.
2.- Change the information of the NodoRed, add a field that is the direction to which is moving! so the client can correct the position and also continue rendering each ship without a future server response.
3.- Changing the server code to sent a response each 10 iterations!
Any other suggestions?