feat(companion): add disconnect metadata to connection snapshots
This commit is contained in:
@@ -271,6 +271,8 @@ describe('platform clients integration', () => {
|
||||
pendingEventWaitCount: 0,
|
||||
hasPendingWork: false,
|
||||
idle: true,
|
||||
lastDisconnectCode: undefined,
|
||||
lastDisconnectReason: undefined,
|
||||
});
|
||||
|
||||
const unsubscribe = client.subscribeEvents(() => undefined);
|
||||
@@ -283,6 +285,8 @@ describe('platform clients integration', () => {
|
||||
pendingEventWaitCount: 1,
|
||||
hasPendingWork: true,
|
||||
idle: false,
|
||||
lastDisconnectCode: undefined,
|
||||
lastDisconnectReason: undefined,
|
||||
});
|
||||
|
||||
client.clearEventSubscriptions();
|
||||
@@ -294,6 +298,8 @@ describe('platform clients integration', () => {
|
||||
pendingEventWaitCount: 0,
|
||||
hasPendingWork: false,
|
||||
idle: true,
|
||||
lastDisconnectCode: undefined,
|
||||
lastDisconnectReason: undefined,
|
||||
});
|
||||
|
||||
unsubscribe();
|
||||
|
||||
Reference in New Issue
Block a user