diff --git a/packages/connector/src/MosConnection.ts b/packages/connector/src/MosConnection.ts index 605d0847..3db18111 100644 --- a/packages/connector/src/MosConnection.ts +++ b/packages/connector/src/MosConnection.ts @@ -174,10 +174,10 @@ export class MosConnection extends EventEmitter implements false ) } - // Handle that .isHotStandby should not check for heartbeats on + // Handle that .openMediaHotStandby should not check for heartbeats on // the secondary connection when the primary is connected // And disable heartbeats on the primary when the primary is disconnected - if (connectionOptions.secondary?.isHotStandby) { + if (connectionOptions.secondary?.openMediaHotStandby) { // Initially disable heartbeats on secondary since primary should be attempted first secondary.disableHeartbeats() diff --git a/packages/connector/src/__tests__/MosConnection.spec.ts b/packages/connector/src/__tests__/MosConnection.spec.ts index a3a0d516..832e6445 100644 --- a/packages/connector/src/__tests__/MosConnection.spec.ts +++ b/packages/connector/src/__tests__/MosConnection.spec.ts @@ -572,7 +572,7 @@ describe('MosDevice: General', () => { id: 'secondary', host: '192.168.0.2', timeout: 200, - isHotStandby: true, + openMediaHotStandby: true, }, }) diff --git a/packages/connector/src/__tests__/OpenMediaHotStandby.spec.ts b/packages/connector/src/__tests__/OpenMediaHotStandby.spec.ts index 94cafc1a..79c15ab8 100644 --- a/packages/connector/src/__tests__/OpenMediaHotStandby.spec.ts +++ b/packages/connector/src/__tests__/OpenMediaHotStandby.spec.ts @@ -25,7 +25,7 @@ describe('Hot Standby Feature', () => { secondary: { id: 'secondary', host: '127.0.0.2', - isHotStandby: true + openMediaHotStandby: true } }); diff --git a/packages/connector/src/api.ts b/packages/connector/src/api.ts index 167ba8ef..10df731a 100644 --- a/packages/connector/src/api.ts +++ b/packages/connector/src/api.ts @@ -672,6 +672,6 @@ export interface IMOSDeviceConnectionOptions { * * (This was added to support the hot standby feature of OpenMedia NRCS.) */ - isHotStandby?: boolean + openMediaHotStandby?: boolean } }