Class MotionMasterReqResWebSocket

Hierarchy

  • MotionMasterReqResWebSocket

Implements

Constructors

Properties

_pingSystemInterval?: number
_systemAliveTimeout?: number
_url?: string
alive$: BehaviorSubject<boolean> = ...

Motion Master is considered alive when it sends messages in regular time interval.

aliveTimeoutId: number = 0
close$: Subject<{
    code: number;
    reason: string;
}> = ...

Emits close events with code and reason data.

Link

https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/close_event

message$: Subject<IMotionMasterMessage> = ...

Decoded message instances coming from Motion Master.

opened$: BehaviorSubject<boolean> = ...

Emits a boolean value when socket gets opened or closed.

pingSystemObserver: {
    next: (() => void);
} = ...

Type declaration

  • next: (() => void)
      • (): void
      • Returns void

pingSystemSubscription?: Subscription
webSocket$?: WebSocketSubject<Uint8Array>

Accessors

Methods

Generated using TypeDoc