diff --git a/packages/drivers/odsp-driver/src/odspDocumentService.ts b/packages/drivers/odsp-driver/src/odspDocumentService.ts index 49402258e231..c1887930ef0a 100644 --- a/packages/drivers/odsp-driver/src/odspDocumentService.ts +++ b/packages/drivers/odsp-driver/src/odspDocumentService.ts @@ -265,6 +265,9 @@ export class OdspDocumentService implements IDocumentService { return connection; } catch (error) { this.cache.sessionJoinCache.remove(this.joinSessionKey); + if (typeof error === "object" && error !== null) { + error.socketDocumentId = websocketEndpoint.id; + } throw error; } });