@yhiot/utils
Version:
15 lines (14 loc) • 319 B
TypeScript
export function createMqReceiver(opts?: {
url: string;
exchange: string;
key: string;
processor: null;
}): Promise<{
conn: any;
channel: any;
consumer: any;
}>;
export function createMqTransmitter(opts?: {
url: string;
exchange: string;
}): (msg: any, key: any) => Promise<boolean>;