Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
boufni95 committed Jan 27, 2025
1 parent 4a55bd6 commit bf161ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/services/webRTC/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ export default class webRTC {
}
conn.ondatachannel = (event) => {
console.log('ondatachannel', event)
const channel = event.channel
channel.addEventListener('message', (event) => {
console.log('message', event)
channel.send(event.data + " to you!")
})
}
conn.oniceconnectionstatechange = (event) => {
console.log('oniceconnectionstatechange', event)
Expand Down

0 comments on commit bf161ac

Please sign in to comment.