You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
whenever i delete the 2nd 'const createPool = edged.createPool' it breaks my code any advice on how to fix it? im only haveing it send call logs to the database
`const { createPool } = require('edgedb');
if (!crypto.timingSafeEqual(calculatedTag, authTag)) {
throw new Error('Message authentication failed');
}
class RtcSignalingService extends Service {
constructor(options) {
super(options);
this.sessions = {};
}
//send the offer to the other party via signaling server
this.app.channel(user/${otherUserId}).send({
event: 'offer',
offer: callerOffer.toJSON(),
from: user._id,
sessionId,
});
// On the callee side:
const { from: incomingOtherUserId, sessionId } = data;
const calleeOffer = new RTCSessionDescription(data.offer);
await pc.setRemoteDescription(calleeOffer);
const answer = await pc.createAnswer();
await pc.setLocalDescription(answer);
//send the answer to the caller via the signaling server
this.app.channel(user/${otherUserId}).send({
event: 'answer',
answer: answer.toJSON(),
from: user._id,
sessionId,
});
const createPool = edged.createPool
`
The text was updated successfully, but these errors were encountered:
Also, all of these errors look like formatting errors (using CRLF instead of LF for line endings, indentation issues, etc) and nothing related to the EdgeDB editor plugin. Maybe ensure that your linting and formatting tools are set up properly?
whenever i delete the 2nd 'const createPool = edged.createPool' it breaks my code any advice on how to fix it? im only haveing it send call logs to the database
`const { createPool } = require('edgedb');
if (!crypto.timingSafeEqual(calculatedTag, authTag)) {
throw new Error('Message authentication failed');
}
class RtcSignalingService extends Service {
constructor(options) {
super(options);
this.sessions = {};
}
}
module.exports = function(app) {
app.use('/rtc-signaling', new RtcSignalingService());
};
//on caller side
const session = this.sessions[sessionId];
const otherUserId = session.caller === user._id ? session.callee : session.caller;
const callerOffer = await pc.createOffer();
await pc.setLocalDescription(callerOffer);
//send the offer to the other party via signaling server
this.app.channel(
user/${otherUserId}
).send({event: 'offer',
offer: callerOffer.toJSON(),
from: user._id,
sessionId,
});
// On the callee side:
const { from: incomingOtherUserId, sessionId } = data;
const calleeOffer = new RTCSessionDescription(data.offer);
await pc.setRemoteDescription(calleeOffer);
const answer = await pc.createAnswer();
await pc.setLocalDescription(answer);
//send the answer to the caller via the signaling server
this.app.channel(
user/${otherUserId}
).send({event: 'answer',
answer: answer.toJSON(),
from: user._id,
sessionId,
});
const createPool = edged.createPool
`
The text was updated successfully, but these errors were encountered: