Sample browser/pub_sub erroneous
See original GitHub issueDescribe the issue
I copied the code from index.ts and installed two packages needed
"aws-iot-device-sdk-v2": "^1.8.11",
"aws-sdk": "^2.1267.0",
In this code, the iot
and auth
variables, which are imported from aws-iot-device-sdk-v2
library, are missused.
In the code:
auth
uses properties which do not exist on its interfaceauth.CredentialsProvider
andauth.AWSCredentials
iot.AwsIotMqttConnectionConfigBuilder
uses functioniot.AwsIotMqttConnectionConfigBuilder.new_builder_for_websocket()
which does not exist on its interface
Links
https://github.com/aws/aws-iot-device-sdk-js-v2/tree/main/samples/browser/pub_sub
Issue Analytics
- State:
- Created 10 months ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
Subscribe with error listener | Cloud Pub/Sub Documentation
Handles errors when subscribing throws an error. Explore further. For detailed documentation that includes this code sample, see the following:.
Read more >node.js - Google Cloud Pub/Sup API: Almost 100% Errors on ...
I'm trying to use GCP Pub/Sub StreamingPull using the NodeJs client and I understand that the pub sub is designed for 100% error...
Read more >pubsub-js - npm
PubSubJS is a topic-based publish/subscribe library written in JavaScript. PubSubJS has synchronisation decoupling, so topics are published ...
Read more >Browser client - Faye: Simple pub/sub messaging for the web
For example, this will make the client try to deliver the message up to 3 times: ... Bear in mind that error detection...
Read more >Server Error when running PubSub sample #607 - GitHub
I followed the README at https://github.com/GoogleCloudPlatform/nodejs-docs-samples/appengine/pubsub/ After deploying to App Engine standard ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It seems like we definitely need a “How to consume from the browser” guide or section in the readme. None of this obvious.
Maybe https://github.com/aws/aws-iot-device-sdk-js-v2/blob/main/samples/browser/pub_sub/tsconfig.json#L40 is another missing piece from your project re-creation?