UNPKG

@seriousme/opifex

Version:

MQTT client & server for Deno & NodeJS

13 lines 471 B
import type { ClientId, PacketId, PublishPacket, QoS, Topic } from "./deps.ts"; export type PacketStore = Map<PacketId, PublishPacket>; export type SubscriptionStore = Map<Topic, QoS>; export interface IStore { existingSession: boolean; clientId: ClientId; pendingIncoming: PacketStore; pendingOutgoing: PacketStore; pendingAckOutgoing: Set<PacketId>; subscriptions: SubscriptionStore; nextId(): PacketId; } //# sourceMappingURL=store.d.ts.map