feat: include userId in event data to ensure client can match it to the correct browser

This commit is contained in:
amhsirak
2025-03-06 05:16:44 +05:30
parent 61914a562a
commit 242529c3fd

View File

@@ -201,7 +201,7 @@ export class RemoteBrowser {
const currentUrl = page.url();
if (this.shouldEmitUrlChange(currentUrl)) {
this.lastEmittedUrl = currentUrl;
this.socket.emit('urlChanged', currentUrl);
this.socket.emit('urlChanged', {url: currentUrl, userId: this.userId});
}
}
});