1 Answer
- Newest
- Most votes
- Most comments
1
This example is not specific to React but shows how to use the AWS IoT Device SDK v2 for a browser implementation: https://github.com/aws/aws-iot-device-sdk-js-v2/tree/main/samples/browser/custom_authorizer_connect
Check in particular this line https://github.com/aws/aws-iot-device-sdk-js-v2/blob/e057cbfbe945dd9bb44ac41283eb8fe0deec8ccb/samples/browser/custom_authorizer_connect/webpack.config.js#L6 which selects the right version of the SDK so that can build correctly for a browser.
Relevant content
- asked 2 years ago
- asked a year ago
- asked a year ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 8 months ago
Thank you Massimiliano for your answer. The aws.iot-device-sdk-js-v2 doesn't have good documentation. I couldn't find any example for a react application and also in order to install it on a React app without breaking it I had to do some workaround on the app. configuration and stuff. it shouldn't be that way. So I end up using Amplify PubSub. thanks