Spaces:
Sleeping
Sleeping
Update public/index.js
Browse files- public/index.js +2 -2
public/index.js
CHANGED
|
@@ -29,8 +29,8 @@ async function handleNegotiationNeededEvent(peer) {
|
|
| 29 |
const offer = await peer.createOffer();
|
| 30 |
await peer.setLocalDescription(offer);
|
| 31 |
const payload = {
|
| 32 |
-
sdp: peer.localDescription
|
| 33 |
-
|
| 34 |
};
|
| 35 |
|
| 36 |
const { data } = await axios.post('/broadcast', payload);
|
|
|
|
| 29 |
const offer = await peer.createOffer();
|
| 30 |
await peer.setLocalDescription(offer);
|
| 31 |
const payload = {
|
| 32 |
+
sdp: peer.localDescription
|
| 33 |
+
// , roomId: "gods"
|
| 34 |
};
|
| 35 |
|
| 36 |
const { data } = await axios.post('/broadcast', payload);
|