dataChannel = {
const dataChannel = localConnection.createDataChannel("channel");
dataChannel.onopen = (e) => {
console.log("Connection opened");
};
dataChannel.onmessage = (msg) => {
console.log("Received message from peer:\n", msg.data);
mutable chatLog += `${msg.data}\n`;
};
return dataChannel;
}