diff --git a/src/connection.ts b/src/connection.ts index 43670d8..d23d4eb 100644 --- a/src/connection.ts +++ b/src/connection.ts @@ -57,7 +57,7 @@ export class RondevuConnection { private role?: 'offerer' | 'answerer'; private icePollingInterval?: ReturnType; private answerPollingInterval?: ReturnType; - private lastIceTimestamp: number = Date.now(); + private lastIceTimestamp: number = 0; // Start at 0 to get all candidates on first poll private eventListeners: Map> = new Map(); private dataChannel?: RTCDataChannel; private pendingIceCandidates: RTCIceCandidateInit[] = [];