Answer
In 1835, Joseph Henry invented the electric relay. The relay was a device that used an electromagnet to open or close a circuit, and it was used to control the flow of electricity. The relay was a key invention in the development of the telegraph, and it helped to make long-distance communication possible.