chat update server function