Studies of the equation-of-state of nuclear matter by heavy-ion collisions at intermediate energy in the multi-messenger era