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

12 lines
373 B
TypeScript
Raw Normal View History

2024-05-09 01:49:52 +00:00
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;
}