Skip to content
This repository has been archived by the owner on Jul 12, 2021. It is now read-only.

dxos-deprecated/signal

Repository files navigation

@dxos/signal

DxOS signal server.

Build Status Coverage Status npm (scoped) js-semistandard-style standard-readme compliant

Install

$ npm install -g @dxos/signal

Usage

$ signal --help

signal [topic]

start a signal server

Options:
  --version        Show version number                                 [boolean]
  --help           Show help                                           [boolean]
  --topic          topic to find other signal servers[string] [default: "#dxos"]
  --port, -p       defines a port to listening                   [default: 4000]
  --bootstrap, -b  defines a list of bootstrap nodes                     [array]
  --asBootstrap    enable the signal as a bootstrap node
                                                      [boolean] [default: false]
  --repl, -r       start a repl console with your signal               [boolean]
  --logLevel, -l   defines the log level
                   [choices: "debug", "info", "warn", "error"] [default: "info"]
  --logFormat      defines the log format
                  [choices: "full", "short", "simple", "json"] [default: "full"]
  --logDir         defines a log directory                              [string]
const { createBroker } = require('@dxos/signal')

const topic = randomBytes(32)

createBroker(topic, opts).start()

API

...

Contributing

PRs accepted.

License

GPL-3.0 © dxos

DxOS Signal Server