We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efc053d commit 777e46eCopy full SHA for 777e46e
1 file changed
samples/browser/react_sample/src/PubSub5.tsx
@@ -77,9 +77,10 @@ function createClient(provider: AWSCognitoCredentialsProvider) : mqtt5.Mqtt5Clie
77
let builder: iot.AwsIotMqtt5ClientConfigBuilder = iot.AwsIotMqtt5ClientConfigBuilder.newWebsocketMqttBuilderWithSigv4Auth(
78
AWS_IOT_ENDPOINT,
79
wsConfig
80
- )
+ );
81
builder.withConnectProperties({
82
- clientId: "test-" + Math.floor(Math.random() * 100000000)
+ clientId: "test-" + Math.floor(Math.random() * 100000000),
83
+ keepAliveIntervalSeconds: 30 // Mandatory field added
84
});
85
86
let client : mqtt5.Mqtt5Client = new mqtt5.Mqtt5Client(builder.build());
0 commit comments