Skip to content

Commit 597eeb5

Browse files
committed
Add declaration
1 parent ed574d6 commit 597eeb5

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

PeerPrep/src/frontend/context/CollabProviderContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export function CollabProvider({ roomId, children }: CollabProviderProps) {
6666
await manager.startCall(); // send offer
6767
voiceManagerRef.current = manager;
6868
} catch (err) {
69-
console.error('🚨 Error initializing CollabProvider:', err);
69+
console.error('Error initializing CollabProvider:', err);
7070
}
7171
}
7272

PeerPrep/src/frontend/context/VoiceConnectionManager.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// AI Assistance Disclosure:
2+
// Tool: ChatGPT, date: 2025 - 11 - 12
3+
// Scope: Add debugging logs to VoiceConnectionManager
4+
// Author review: Gavin validated correctness, edited for style
15
type SignalMsg =
26
| { type: 'join'; roomId: string; clientId: string }
37
| { type: 'hello'; roomId: string; clientId: string }

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55
### Note:
66
- You are required to develop individual microservices within separate folders within this repository.
77
- The teaching team should be given access to the repositories as we may require viewing the history of the repository in case of any disputes or disagreements.
8+
9+
### Declaration:
10+
- Gavin has adapted server.js inside signaling-svc from node_modules/y-webrtc/bin/server.js and modified it to support audio stream
11+
- Gavin has used ChatGPT to generate debugging logs to VoiceConnectionManager and signaling server

signaling-svc/server.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/usr/bin/env node
22
// This is adapted and modified from node_modules/y-webrtc/bin/server.js
3+
// AI Assistance Disclosure:
4+
// Tool: ChatGPT, date: 2025 - 11 - 12
5+
// Scope: Extends audio stream functionality to signaling server based on https://webrtc.org/getting-started/media-devices
6+
// Author review: Gavin validated correctness, edited for style
37
import { WebSocketServer } from 'ws';
48
import http from 'http';
59
import * as map from 'lib0/map';
@@ -126,7 +130,7 @@ const onconnection = (conn) => {
126130
}
127131
}
128132
break;
129-
// 🆕 VOICE MESSAGE SUPPORT
133+
// VOICE MESSAGE SUPPORT
130134
case 'join':
131135
const topic = map.setIfUndefined(
132136
topics,
@@ -135,7 +139,7 @@ const onconnection = (conn) => {
135139
);
136140
topic.add(conn);
137141
subscribedTopics.add(message.roomId);
138-
console.log(`👥 Client joined room: ${message.roomId}`);
142+
console.log(`Client joined room: ${message.roomId}`);
139143
break;
140144
case 'offer':
141145
case 'answer':

0 commit comments

Comments
 (0)