handleServerInput