You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Amplify JS has special handling for Websocket subscription. when the AppSync API is using custom domain. Please add support for the same when using mock. When running mock server a special variable aws_appsync_dangerously_connect_to_http_endpoint_for_testing is set to allow to connect using unsecure websocket.
CLI has a bug report(aws-amplify/amplify-category-api#122) to add support to /graphql/realtime endpoint and we would like feature parity in the libraries as well
Describe the solution you'd like
When aws_appsync_dangerously_connect_to_http_endpoint_for_testing is set, add /realtime to the websocket url
Describe alternatives you've considered
Keeping the mock subscription server in /grpahql but it would degrade the DX
Additional context
No response
Is this something that you'd be interested in working on?
👋 I may be able to implement this feature request
⚠️ This feature might incur a breaking change
The text was updated successfully, but these errors were encountered:
Is this related to a new or existing framework?
New framework
Is this related to a new or existing API?
GraphQL API
Is this related to another service?
No response
Describe the feature you'd like to request
Amplify JS has special handling for Websocket subscription. when the AppSync API is using custom domain. Please add support for the same when using mock. When running mock server a special variable
aws_appsync_dangerously_connect_to_http_endpoint_for_testing
is set to allow to connect using unsecure websocket.https://github.com/aws-amplify/amplify-js/blob/bb60060d30c7463d1893b7678ebc18e959b46990/packages/pubsub/src/Providers/AWSAppSyncRealTimeProvider.ts#L144-L148
https://github.com/aws-amplify/amplify-js/blob/bb60060d30c7463d1893b7678ebc18e959b46990/packages/pubsub/src/Providers/AWSAppSyncRealTimeProvider.ts#L170-L172
CLI has a bug report(aws-amplify/amplify-category-api#122) to add support to
/graphql/realtime
endpoint and we would like feature parity in the libraries as wellDescribe the solution you'd like
When
aws_appsync_dangerously_connect_to_http_endpoint_for_testing
is set, add/realtime
to the websocket urlDescribe alternatives you've considered
Keeping the mock subscription server in
/grpahql
but it would degrade the DXAdditional context
No response
Is this something that you'd be interested in working on?
The text was updated successfully, but these errors were encountered: