aws-mobile-appsync-sdk-js
aws-mobile-appsync-sdk-js copied to clipboard
feat: Handle AppSync Custom Domains
Issue #, if available:
Fixes #517 for AppSync custom domains
Description of changes:
The issue was originally about supporting an arbitrary URL for websockets, but since AppSync now allows Custom Domains we should be able to rely on a simple replace to get the correct realtime url. This PR adds on one more replace call that appends /realtime to the url if it is not a default (i.e. *.amazonaws.com/graphql) url.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Thanks! I need that as well! Custom domains are simply not working right now.
This change is no longer relevant as aws-appsync-subscription-link v3.1.0 now supports custom domain.