aws-mobile-appsync-sdk-js icon indicating copy to clipboard operation
aws-mobile-appsync-sdk-js copied to clipboard

createSubscriptionHandshakeLink documentation is not accurate with MQTT deprecation

Open kcwinner opened this issue 3 years ago • 3 comments

Note: If your issue/feature-request/question is regarding the AWS AppSync service, please log it in the official AWS AppSync forum

Do you want to request a feature or report a bug? Documentation

What is the current behavior? README states

For version 3+, the createSubscriptionHandshakeLink can also be configured the same as createAuthLink. This will have the same behavior as mentioned here for version 3+ Please see the example below:
...
...

What is the expected behavior? With the mqtt deprecation it is no longer possible to configure the createSubscriptionHandshakeLink as createSubscriptionHandshakeLink(url, httpLink) Instead, you must use createSubscriptionHandshakeLink({ url, region, auth }) or it will result to using MQTT

kcwinner avatar Mar 17 '21 20:03 kcwinner

Thanks for this — for anyone suddenly running into a 400 error from AppSync saying, "Subscriptions over MQTT is not supported.", this is probably your issue.

bryandowning avatar Mar 23 '21 20:03 bryandowning

Thank you very much! This also helped me to fix this MQTT error i was getting.

Boubaker93 avatar May 16 '21 21:05 Boubaker93

Thanks, you save my day

lochawala avatar May 28 '21 04:05 lochawala