Skip to content

Instantly share code, notes, and snippets.

@LazyFatArrow
Last active March 7, 2019 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LazyFatArrow/03ba92dbf2e9e0549ad6d0b8c03de27d to your computer and use it in GitHub Desktop.
Save LazyFatArrow/03ba92dbf2e9e0549ad6d0b8c03de27d to your computer and use it in GitHub Desktop.
// ... code
// Config
const defaultOptions = {
// You can use `https` for secure connection (recommended in production)
httpEndpoint: process.env.VUE_APP_GRAPHQL_HTTP_URL,
// You can use `wss` for secure connection (recommended in production)
// Use `null` to disable subscriptions
wsEndpoint: process.env.VUE_APP_GRAPHQL_WS_URL,
// ... code
}
// ... code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment