feat: include userId in event data to ensure client can match it to the correct browser
This commit is contained in:
@@ -201,7 +201,7 @@ export class RemoteBrowser {
|
|||||||
const currentUrl = page.url();
|
const currentUrl = page.url();
|
||||||
if (this.shouldEmitUrlChange(currentUrl)) {
|
if (this.shouldEmitUrlChange(currentUrl)) {
|
||||||
this.lastEmittedUrl = currentUrl;
|
this.lastEmittedUrl = currentUrl;
|
||||||
this.socket.emit('urlChanged', currentUrl);
|
this.socket.emit('urlChanged', {url: currentUrl, userId: this.userId});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user