send current direction to the server