Unable to recieve messages with MTLS connection (works with websocket though) #520
Answered
by
jmklix
ShivamJoker
asked this question in
Q&A
-
Here is my code: const url = "a26wubrqc2pci-ats.iot.us-east-1.amazonaws.com";
const keyPath = "./certs/private.pem";
const certPath = "./certs/certificate.pem";
const builder =
AwsIotMqtt5ClientConfigBuilder.newDirectMqttBuilderWithMtlsFromPath(
url,
certPath,
keyPath,
);
// const builder =
// AwsIotMqtt5ClientConfigBuilder.newWebsocketMqttBuilderWithSigv4Auth(url);
builder.withConnectProperties({
clientId: "nodejs-cli",
keepAliveIntervalSeconds: 120,
});
const client = new Mqtt5Client(builder.build()); I can receive the connect event but not any messages. |
Beta Was this translation helpful? Give feedback.
Answered by
jmklix
Jul 29, 2024
Replies: 1 comment 1 reply
-
Can you provide more details about your setup and reproductions steps? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Closing this for now. Please open a new discussion if you still have any questions about how to use this sdk