Interface MotionMasterReqResSocket

Hierarchy

  • MotionMasterReqResSocket

Implemented by

Properties

alive$: BehaviorSubject<boolean>

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

close$: Observable<{
    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$: Observable<IMotionMasterMessage>

Decoded message instances coming from Motion Master.

opened$: BehaviorSubject<boolean>

Emits a boolean value when socket gets opened or closed.

Accessors

Methods

  • Open socket.

    The connected$ and eventually alive$ observables will emit true values.

    Parameters

    • url: string
    • Optional pingSystemInterval: number
    • Optional systemAliveTimeout: number

    Returns void

Generated using TypeDoc