[mirotalksfu] - improve webhook, add readme
هذا الالتزام موجود في:
@@ -15,10 +15,6 @@ app.post('/webhook-endpoint', (req, res) => {
|
||||
|
||||
// Handle different events
|
||||
switch (event) {
|
||||
case 'disconnect':
|
||||
console.log('User disconnected:', data);
|
||||
// Add your custom logic here
|
||||
break;
|
||||
case 'join':
|
||||
console.log('User joined:', data);
|
||||
// Add your custom logic here
|
||||
@@ -27,6 +23,10 @@ app.post('/webhook-endpoint', (req, res) => {
|
||||
console.log('User exited:', data);
|
||||
// Add your custom logic here
|
||||
break;
|
||||
case 'disconnect':
|
||||
console.log('User disconnected:', data);
|
||||
// Add your custom logic here
|
||||
break;
|
||||
default:
|
||||
console.error('Unknown event type');
|
||||
break;
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم