Compare commits
No commits in common. "develop" and "update-build" have entirely different histories.
develop
...
update-bui
10
app.js
10
app.js
@ -542,15 +542,6 @@ const isInitiator = (callId, socketId) => {
|
||||
return videoCalls[callId]?.initiatorSocket?.id === socketId;
|
||||
};
|
||||
|
||||
const emitToParticipants = (callId, event, message) => {
|
||||
try {
|
||||
videoCalls[callId].receiverSocket.emit(event, message);
|
||||
videoCalls[callId].initiatorSocket.emit(event, message);
|
||||
} catch (error) {
|
||||
console.error(`[emitToParticipants] | ERROR | callId: ${callId} | error: ${error.message}`);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
- Called from at event 'createWebRtcTransport' and assigned to the consumer or producer transport
|
||||
- It will return parameters, these are required for the client to create the RecvTransport
|
||||
@ -593,7 +584,6 @@ const createWebRtcTransportLayer = async (callId, callback) => {
|
||||
console.log(`[ICE STATE CHANGE] callId: ${callId} | State: ${iceState}`);
|
||||
if (iceState === 'failed' || iceState === 'disconnected') {
|
||||
console.warn(`⚠️ ICE failure detected for callId: ${callId}! Possible UDP blockage.`);
|
||||
emitToParticipants(callId, 'connection-failed', { callId });
|
||||
}
|
||||
});
|
||||
|
||||
|
6
build.sh
6
build.sh
@ -51,12 +51,12 @@ if [ -d "node_modules" ]; then
|
||||
fi
|
||||
|
||||
# Install dependencies
|
||||
#npm install
|
||||
npm install
|
||||
|
||||
## PROJECT NEEDS
|
||||
echo "Building app... from $(git rev-parse --abbrev-ref HEAD)"
|
||||
#npm run-script build
|
||||
cp -r {.env,app.js,package.json,server,public,doc,Dockerfile,tsconfig.json,.dockerignore} dist/
|
||||
npm run-script build
|
||||
cp -r {.env,app.js,package.json,server,public,doc,Dockerfile} dist/
|
||||
#cp -r ./* dist/
|
||||
|
||||
# Generate Git log
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 215 KiB |
Loading…
x
Reference in New Issue
Block a user