How to use aws-appsync-subscription-link - 1 common examples

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
conflictResolver,
}: {
    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),
        createRetryLink(ApolloLink.from([
            new CatchErrorLink(() =>new AuthLink({ url, region, auth })),
            new PermanentErrorLink(createSubscriptionHandshakeLink({ url, region, auth }, resultsFetcherLink))
        ]))
    ].filter(Boolean));

    return link;
};

aws-appsync-subscription-link

AWS Mobile AppSync SDK for JavaScript

Apache-2.0
Latest version published 10 months ago

Package Health Score

73 / 100
Full package analysis

Popular aws-appsync-subscription-link functions