added typescript server
added sendCommand method, for sending information client to server