The send() method of the RTCDataChannel interface sends data across the data channel to the remote peer.
send()
MDN Reference