UNPKG

@robotical/ricjs

Version:

Javascript/TS library for Robotical RIC

17 lines (16 loc) 709 B
import { RICConnEventFn } from "./RICConnEvents"; import RICMsgHandler from "./RICMsgHandler"; export default interface RICChannel { isConnected(): boolean; connect(locator: string | object): Promise<boolean>; disconnect(): Promise<void>; getConnectedLocator(): string | object; setOnConnEvent(connEventFn: RICConnEventFn): void; setMsgHandler(ricMsgHandler: RICMsgHandler): void; sendTxMsg(msg: Uint8Array, sendWithResponse: boolean): Promise<boolean>; sendTxMsgNoAwait(msg: Uint8Array, sendWithResponse: boolean): Promise<boolean>; requiresSubscription(): boolean; fhBatchAckSize(): number; fhFileBlockSize(): number; pauseConnection(pause: boolean): void; }