Skip to content

Commit

Permalink
chore: removed go-ipfs mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtPooki committed Nov 14, 2024
1 parent 02cb6f1 commit 1e6936a
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions examples/remote-disposable/remote-disposable.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
/* eslint no-console: 0 */

// @ts-check
// Start a remote disposable node, and get access to the api
// print the node id, and stop the temporary daemon

const { createController, createServer } = require('../../src')
const { path } = require('kubo')
const { create } = require('kubo-rpc-client')
/**
* @type {import('../../src')}
*/
const { createNode, createServer } = require('../../src')
const server = createServer()

async function run () {
await server.start()
const node = await createController({
const node = await createNode({
remote: true,
type: 'go',
ipfsBin: require('go-ipfs').path()
type: 'kubo',
bin: path(),
rpc: create
})

console.log(await node.api.id())
Expand Down

0 comments on commit 1e6936a

Please sign in to comment.