I hereby claim:
- I am bafonins on github.
- I am bafonins (https://keybase.io/bafonins) on keybase.
- I have a public key ASAzSJ4D_4QZ736j8Jwn6wFLy8V2ClqjoudQSfKqhX9j8Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| // stream.js | |
| import ArrayBufferToString from 'arraybuffer-to-string' | |
| import Token from '../../util/token' | |
| import { notify, EVENTS } from './shared' | |
| import 'web-streams-polyfill/dist/polyfill.js' | |
| export default async function (payload, url) { | |
| let listeners = Object.values(EVENTS) | |
| .reduce((acc, curr) => ({ ...acc, [curr]: null }), {}) | |
| const token = new Token().get() |
| // stream.js | |
| import ArrayBufferToString from 'arraybuffer-to-string' | |
| import Token from '../../util/token' | |
| import { notify, EVENTS } from './shared' | |
| import 'web-streams-polyfill/dist/polyfill.js' | |
| export default async function (payload, url, executor) { | |
| let listeners = Object.values(EVENTS) | |
| .reduce((acc, curr) => ({ ...acc, [curr]: null }), {}) |
| const assert = require('assert') | |
| const TTN = require('ttn-lw').default | |
| const axios = require('axios') | |
| const is = process.env.TTN_LW_IDENTITY_SERVER_ADDRESS | |
| const token = process.env.access_token | |
| const ttnClient = new TTN( | |
| token, | |
| { | |
| stackConfig: { is: `${is}/api/v3` }, |
| const assert = require('assert') | |
| const TTN = require('ttn-lw').default | |
| const axios = require('axios') | |
| const is = process.env.TTN_LW_IDENTITY_SERVER_ADDRESS | |
| const token = process.env.access_token | |
| const ttnClient = new TTN( | |
| token, | |
| { | |
| stackConfig: { is: `${is}/api/v3` }, |
| import React from 'react' | |
| import Spinner from '../../components/spinner' | |
| const withRequest = ( | |
| isFetchingTest = () => false, | |
| isUpdatedTest = () => false | |
| ) => Component => | |
| class WithRequest extends React.Component { |
| const TTN = require('ttn-lw').default | |
| const js = process.env.TTN_LW_JOIN_SERVER_ADDRESS | |
| const token = process.env.access_token | |
| const ttnClient = new TTN( | |
| token, | |
| { | |
| stackConfig: { js: `${js}/api/v3` }, | |
| connectionType: 'http', | |
| proxy: false, |
| const TTN = require('ttn-lw').default | |
| const ns = process.env.TTN_LW_NETWORK_SERVER_ADDRESS | |
| const token = process.env.access_token | |
| const ttnClient = new TTN( | |
| token, | |
| { | |
| stackConfig: { ns: `${ns}/api/v3` }, | |
| connectionType: 'http', |
| // Copyright © 2019 The Things Network Foundation, The Things Industries B.V. | |
| // | |
| // Licensed under the Apache License, Version 2.0 (the "License"); | |
| // you may not use this file except in compliance with the License. | |
| // You may obtain a copy of the License at | |
| // | |
| // http://www.apache.org/licenses/LICENSE-2.0 | |
| // | |
| // Unless required by applicable law or agreed to in writing, software | |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| const assert = require('assert') | |
| const TTN = require('ttn-lw').default | |
| const is = process.env.TTN_LW_IDENTITY_SERVER_ADDRESS | |
| const token = process.env.access_token | |
| const ttnClient = new TTN(token, { | |
| stackConfig: { is: `${is}/api/v3` }, | |
| connectionType: 'http', | |
| proxy: false, | |
| }) |