UNPKG

432 BTypeScriptView Raw
1import { BaseRpcContext } from './base-rpc.context';
2declare type MqttContextArgs = [string, Record<string, any>];
3export declare class MqttContext extends BaseRpcContext<MqttContextArgs> {
4 constructor(args: MqttContextArgs);
5 /**
6 * Returns the name of the topic.
7 */
8 getTopic(): string;
9 /**
10 * Returns the refernce to the original MQTT packet.
11 */
12 getPacket(): Record<string, any>;
13}
14export {};