IOTConnect-Web/node_modules/mqtt/build/lib/default-message-id-provider.d.ts

17 lines
477 B
TypeScript
Raw Normal View History

2024-05-09 01:49:52 +00:00
export interface IMessageIdProvider {
allocate(): number | null;
getLastAllocated(): number | null;
register(num: number): boolean;
deallocate(num: number): void;
clear(): void;
}
export default class DefaultMessageIdProvider implements IMessageIdProvider {
private nextId;
constructor();
allocate(): number;
getLastAllocated(): number;
register(messageId: number): boolean;
deallocate(messageId: number): void;
clear(): void;
}