send socket command to server e.g. rasperry pi