IOTConnect-Web/node_modules/mqtt/build/lib/unique-message-id-provider.d.ts
2024-05-09 09:49:52 +08:00

12 lines
373 B
TypeScript

import { IMessageIdProvider } from './default-message-id-provider';
export default class UniqueMessageIdProvider implements IMessageIdProvider {
private numberAllocator;
private lastId;
constructor();
allocate(): number;
getLastAllocated(): number;
register(messageId: number): boolean;
deallocate(messageId: number): void;
clear(): void;
}