UNPKG

@robotical/ricjs

Version:

Javascript/TS library for Robotical RIC

40 lines 1.4 kB
"use strict"; ///////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // RICJS // Communications Library // // Rob Dobson & Chris Greening 2020-2022 // (C) 2020-2022 // ///////////////////////////////////////////////////////////////////////////////////////////////////////////////// Object.defineProperty(exports, "__esModule", { value: true }); exports.RICMsgTrackInfo = void 0; class RICMsgTrackInfo { constructor() { this.msgOutstanding = false; this.msgFrame = new Uint8Array(); this.msgSentMs = 0; this.retryCount = 0; this.withResponse = false; this.msgHandle = 0; this.msgTimeoutMs = undefined; this.msgOutstanding = false; } set(msgOutstanding, msgFrame, withResponse, msgHandle, msgTimeoutMs, resolve, reject) { this.msgOutstanding = msgOutstanding; this.msgFrame = msgFrame; this.retryCount = 0; this.msgSentMs = Date.now(); this.withResponse = withResponse; this.msgHandle = msgHandle; this.msgTimeoutMs = msgTimeoutMs; this.resolve = resolve; this.reject = reject; } } exports.RICMsgTrackInfo = RICMsgTrackInfo; RICMsgTrackInfo.MAX_MSG_NUM = 255; RICMsgTrackInfo.MSG_RESPONSE_TIMEOUT_MS = 5000; RICMsgTrackInfo.MSG_RETRY_COUNT = 5; //# sourceMappingURL=RICMsgTrackInfo.js.map