@aws-amplify/core
Version:
Core category of aws-amplify
16 lines (12 loc) • 587 B
text/typescript
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
/**
* This Symbol is used to reference an internal-only PubSub provider that
* is used for AppSync/GraphQL subscriptions in the API category.
*/
const hasSymbol =
typeof Symbol !== 'undefined' && typeof Symbol.for === 'function';
export const INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER = hasSymbol
? Symbol.for('INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER')
: '@@INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER';
export const USER_AGENT_HEADER = 'x-amz-user-agent';