@kronos-integration/service-swarm

manage a set of remote services

Usage no npm install needed!

<script type="module">
  import kronosIntegrationServiceSwarm from 'https://cdn.skypack.dev/@kronos-integration/service-swarm';
</script>

README

npm License minified size downloads GitHub Issues Build Status Styled with prettier Commitizen friendly Known Vulnerabilities Coverage Status

@kronos-integration/service-swarm

Manage a set of remote services

API

Table of Contents

PEERS_NAME_PREFIX

Endpoint name prefix for peers endpoints.

Type: string

PeersEndpoint

Extends MultiSendEndpoint

Endpoint to link against a swarm topic.

Parameters

  • name string endpoint name

  • owner Object owner of the endpoint

  • options Object (optional, default {})

    • options.topic string defaults to endpoint name (without @see PEERS_NAME_PREFIX)

Properties

ServiceSwarm

Extends Service

Swarm detecting sync service.

endpointFactoryFromConfig

On demand create topic endpoints.

Parameters

Returns Class TopicEndpoint if name starts with 'topic.'

name

Returns string 'swarm'

TOPIC_NAME_PREFIX

Endpoint name prefix for topic endpoints.

Type: string

TopicEndpoint

Extends MultiSendEndpoint

Endpoint to link against a swarm topic.

Parameters

  • name string endpoint name

  • owner Object owner of the endpoint

  • options Object (optional, default {})

    • options.topic string defaults to endpoint name (without @see TOPIC_NAME_PREFIX)

Properties

Topic

Parameters

Properties

install

With npm do:

npm install @kronos-integration/service-swarm

license

BSD-2-Clause