This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { createHttpLink } from 'apollo-link-http' | |
| import { ApolloLink, split, concat } from 'apollo-link' | |
| import { ApolloClient } from 'apollo-client' | |
| import { WebSocketLink } from 'apollo-link-ws' | |
| import { getMainDefinition } from 'apollo-utilities' | |
| import { InMemoryCache } from 'apollo-cache-inmemory' | |
| import { onError } from 'apollo-link-error' | |
| import { withClientState } from 'apollo-link-state' | |
| import env from '../env.json' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var | |
| // Local ip address that we're trying to calculate | |
| address | |
| // Provides a few basic operating-system related utility functions (built-in) | |
| ,os = require('os') | |
| // Network interfaces | |
| ,ifaces = os.networkInterfaces(); | |
| // Iterate over interfaces ... |