...
Define the sendMessage function which will be responsible for parsing input, sending it to server and displaying it in the local chat as a message
Node Note that messages is sent using WebRTC data channels
...
...
Define the sendMessage function which will be responsible for parsing input, sending it to server and displaying it in the local chat as a message
Node Note that messages is sent using WebRTC data channels
...