Skip to content
This repository was archived by the owner on Jun 30, 2026. It is now read-only.
holepunchtoPublic archive

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

15 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

Bot Rpc

  • Run bot as a rpc server

Run

// server.js
const rpc = new BotRpc()
rpc.addHandler((data, reply) => {
  try {
    console.info('Received data:', data)
  } catch (err) {
    console.error('Failed with:', err)
    reply(`\nFailed with: ${err}`)
  }
})

// client.js
send({ remote: '<rpc-public-key>', data: { hello: 'world' } })

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

15 watching

Forks

Releases

Packages

Used by

Contributors

Languages