@gatling.io/mqtt
Version:
Gatling JS is a JavaScript/TypeScript interface for the [Gatling load testing tool](https://gatling.io/).
32 lines (31 loc) • 1.17 kB
TypeScript
import JvmMqttInboundMessage = io.gatling.mqtt.action.MqttInboundMessage;
export type MqttMessageType = "CONNECT" | "CONNACK" | "PUBLISH" | "PUBACK" | "PUBREC" | "PUBREL" | "PUBCOMP" | "SUBSCRIBE" | "SUBACK" | "UNSUBSCRIBE" | "UNSUBACK" | "PINGREQ" | "PINGRESP" | "DISCONNECT" | "AUTH";
export type MqttQos = "AT_MOST_ONCE" | "AT_LEAST_ONCE" | "EXACTLY_ONCE" | "FAILURE";
export interface MqttFixedHeader {
isDup(): boolean;
isRetain(): boolean;
messageType(): MqttMessageType;
qosLevel(): MqttQos;
remainingLength(): number;
toString(): string;
}
export interface MqttProperties {
}
export interface MqttPublishVariableHeader {
topicName(): string;
/**
* @deprecated use {@link #packetId()} instead.
*/
messageId(): number;
packetId(): number;
properties(): MqttProperties;
toString(): string;
}
export interface MqttInboundMessage {
timestamp(): number;
fixedHeader(): MqttFixedHeader;
variableHeader(): MqttPublishVariableHeader;
payload(): number[];
payloadUtf8String(): string;
}
export declare const wrapMqttInboundMessages: (jvmMessages: JvmMqttInboundMessage[]) => MqttInboundMessage[];