How to use the aws-appsync-subscription-link.createSubscriptionHandshakeLink function in aws-appsync-subscription-link

To help you get started, we’ve selected a few aws-appsync-subscription-link examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github awslabs / aws-mobile-appsync-sdk-js / packages / aws-appsync / src / client.ts View on Github external
}: {
    url: string,
    region: string,
    auth: AuthOptions,
    complexObjectsCredentials: CredentialsGetter,
    resultsFetcherLink?: ApolloLink,
    conflictResolver?: ConflictResolver,
}) => {
    const link = ApolloLink.from([
        createLinkWithStore((store) => new OfflineLink(store)),
        new ConflictResolutionLink(conflictResolver),
        new ComplexObjectLink(complexObjectsCredentials),
            new CatchErrorLink(() =>new AuthLink({ url, region, auth })),
            new PermanentErrorLink(createSubscriptionHandshakeLink({ url, region, auth }, resultsFetcherLink))

    return link;


AWS Mobile AppSync SDK for JavaScript

Latest version published 4 months ago

Package Health Score

81 / 100
Full package analysis

Popular aws-appsync-subscription-link functions