feat(companion): add direct disconnect metadata getters

This commit is contained in:
William Valentin
2026-02-16 23:32:50 -08:00
parent 6821e3779f
commit 809000b6c6
7 changed files with 83 additions and 11 deletions
+2
View File
@@ -797,6 +797,8 @@ describe('CompanionRuntimeClient', () => {
lastDisconnectCode: 4100,
lastDisconnectReason: 'manual stop',
});
expect(client.lastDisconnectCode).toBe(4100);
expect(client.lastDisconnectReason).toBe('manual stop');
});
it('connection snapshot tracks transport close code and reason', async () => {