@fission-codes/homestar
TypeScript icon, indicating that this package has built-in type declarations

2.4.0 • Public • Published

Homestar

npm (scoped) GitHub Workflow Status (with event) Built by FISSION Discord Discourse users

Installation

pnpm install @fission-codes/homestar

Usage

import { Homestar } from '@fission-codes/homestar'
import { WebsocketTransport } from '@fission-codes/homestar/transports/ws.js'

// if you need isomorphic support
import { WebSocket } from 'unws'

const hs = new Homestar({
  transport: new WebsocketTransport('ws://localhost:8060', {
    ws: WebSocket,
  }),
})

hs.on('error', (error) => {
  console.error(error)
})

const { error, result } = await hs.metrics()
if (error) {
  console.error(error)
}

hs.close()

Docs

Check https://fission-codes.github.io/stack

Contributing

Read contributing guidelines here.

Open in GitHub Codespaces

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Readme

Keywords

none

Package Sidebar

Install

npm i @fission-codes/homestar

Weekly Downloads

24

Version

2.4.0

License

MIT

Unpacked Size

102 kB

Total Files

32

Last publish

Collaborators

  • hugomrdias
  • fission-bot
  • walkah