Skip to content

[Question] Meteor/Apollo Subscriptions #199

Answered by ajaypillay
ajaypillay asked this question in Q&A
Discussion options

You must be logged in to vote

Here's the final complete source for my client and server. For more insights, check out this thread:

Client:

import React from "react"
import { render } from "react-dom"
import { BrowserRouter } from "react-router-dom"
import { ApolloClient, ApolloProvider, HttpLink, split, InMemoryCache } from "@apollo/client"
import { ApolloLink, Observable} from '@apollo/client/core'
import { offsetLimitPagination, getMainDefinition } from "@apollo/client/utilities"
import { ApolloLink as ApolloLink2, from } from "apollo-link"
import { print, GraphQLError } from "graphql"
import { createClient } from "graphql-ws"
import App from "../../ui/App"
  
class WebSocketLink extends ApolloLink {
    constructor(o…

Replies: 3 comments 12 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
12 replies
@enisdenjo
Comment options

@ajaypillay
Comment options

@enisdenjo
Comment options

@enisdenjo
Comment options

@ajaypillay
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ajaypillay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #187 on June 04, 2021 12:47.