I think the server should handle the movement of the player, and the client should just send its inputs (hold left for X seconds. The client can still move the player as well, but when the server sends its position that will be the new position.
Maybe also position should include velocity.
I think the server should handle the movement of the player, and the client should just send its inputs (hold left for X seconds. The client can still move the player as well, but when the server sends its position that will be the new position. Maybe also position should include velocity.