There was an error while loading. Please reload this page.
1 parent 49000b6 commit 5b39fb8Copy full SHA for 5b39fb8
1 file changed
packages/core/src/v3/sessionStreams/index.ts
@@ -79,7 +79,11 @@ export class SessionStreamsAPI implements SessionStreamManager {
79
}
80
81
public peekRecord(sessionId: string, io: SessionChannelIO): SessionStreamRecord | undefined {
82
- return this.#getManager().peekRecord?.(sessionId, io);
+ const manager = this.#getManager();
83
+ if (!manager.peekRecord) {
84
+ throw new Error("The configured Session stream manager does not support record metadata");
85
+ }
86
+ return manager.peekRecord(sessionId, io);
87
88
89
public peekRecordWhere(
0 commit comments