@ionic/discover
Simple UDP based protocol for service discovery implemented in pure JS.
Last updated 3 months ago by dwieeb .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @ionic/discover 
SYNC missed versions from official npm registry.

Ionic Discover

Simple UDP based protocol for service discovery implemented in pure JS. It is not mDNS or bonjour, but it tries to accomplish the same thing.

Spec

It uses a JSON based textual format:

const message = {
  t: now,
  id: 'unique',
  name: this.name,
  host: os.hostname(),
  ip: iface.address,
  port: number1,
  commPort: number2
};

return 'ION_DP' + JSON.stringify(message);
key description
t unix timestamp in second
id unique id for this session
name name of the announced service
host hostname of the machine announcing the service
ip ipv4 address
port tcp port of the announced service
commPort optional websocket port of the communication server

Installation

npm install @ionic/discover

Usage

import { Publisher } from '@ionic/discover';

const namespace = 'your-service';
const serviceName = 'Ionic thing!';
const tcpPort = 8100;
const service = new Publisher(namespace, serviceName, tcpPort);

await service.start();

Current Tags

  • 2.0.0-beta.3                                ...           beta (a year ago)
  • 1.0.0-alpha.0405736c                                ...           canary (2 years ago)
  • 3.1.3                                ...           latest (3 months ago)
  • 1.0.0-rc.13                                ...           rc (2 years ago)
  • 1.1.0-testing.73b2b888                                ...           testing (2 years ago)

134 Versions

  • 3.1.3                                ...           3 months ago
  • 3.1.2                                ...           3 months ago
  • 3.1.1                                ...           5 months ago
  • 3.1.0                                ...           6 months ago
  • 3.0.2                                ...           6 months ago
  • 3.0.1                                ...           6 months ago
  • 3.0.0                                ...           7 months ago
  • 2.0.8                                ...           7 months ago
  • 2.0.7                                ...           8 months ago
  • 2.0.6                                ...           a year ago
  • 2.0.5                                ...           a year ago
  • 2.0.4                                ...           a year ago
  • 2.0.3                                ...           a year ago
  • 2.0.2                                ...           a year ago
  • 2.0.1                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 2.0.0-beta.3                                ...           a year ago
  • 2.0.0-beta.2                                ...           a year ago
  • 2.0.0-beta.1                                ...           a year ago
  • 2.0.0-beta.0                                ...           a year ago
  • 1.0.13                                ...           a year ago
  • 1.0.12                                ...           a year ago
  • 1.0.11                                ...           2 years ago
  • 1.0.10                                ...           2 years ago
  • 1.0.9                                ...           2 years ago
  • 1.0.8                                ...           2 years ago
  • 1.1.0-testing.73b2b888                                ...           2 years ago
  • 1.0.7                                ...           2 years ago
  • 1.0.6                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.1.0-testing.e70f2d6e                                ...           2 years ago
  • 1.1.0-testing.abd665ba                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.1.0-testing.6a88cfe2                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.1.0-testing.fabaebf2                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.1.0-testing.b8379be8                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.1.0-testing.458303e0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 1.0.0-rc.13                                ...           2 years ago
  • 1.0.0-rc.12                                ...           2 years ago
  • 1.0.0-rc.11                                ...           2 years ago
  • 1.0.0-rc.10                                ...           2 years ago
  • 1.0.0-rc.9                                ...           2 years ago
  • 1.0.0-rc.8                                ...           2 years ago
  • 1.0.0-rc.7                                ...           2 years ago
  • 1.0.0-rc.6                                ...           2 years ago
  • 1.0.0-rc.5                                ...           2 years ago
  • 1.0.0-rc.4                                ...           2 years ago
  • 1.0.0-rc.3                                ...           2 years ago
  • 1.0.0-testing.fa20842b                                ...           2 years ago
  • 1.0.0-rc.2                                ...           2 years ago
  • 1.0.0-testing.70319022                                ...           2 years ago
  • 1.0.0-testing.04e86fbd                                ...           2 years ago
  • 1.0.0-rc.1                                ...           2 years ago
  • 1.0.0-rc.0                                ...           2 years ago
  • 1.0.0-alpha.0405736c                                ...           2 years ago
  • 1.0.0-alpha.94b47721                                ...           2 years ago
  • 1.0.0-alpha.527fff48                                ...           2 years ago
  • 1.0.0-alpha.6587fe93                                ...           2 years ago
  • 1.0.0-alpha.dbc03410                                ...           2 years ago
  • 1.0.0-alpha.4e86d307                                ...           2 years ago
  • 1.0.0-alpha.9c5d4505                                ...           2 years ago
  • 1.0.0-alpha.d62c12b3                                ...           2 years ago
  • 1.0.0-alpha.ee36d421                                ...           2 years ago
  • 1.0.0-alpha.2261e005                                ...           2 years ago
  • 1.0.0-alpha.e0a71a83                                ...           2 years ago
  • 1.0.0-alpha.aea8efc7                                ...           2 years ago
  • 1.0.0-alpha.9822d979                                ...           2 years ago
  • 1.0.0-alpha.ad70724a                                ...           2 years ago
  • 1.0.0-alpha.72cfdebc                                ...           2 years ago
  • 1.0.0-alpha.3c83e928                                ...           2 years ago
  • 1.0.0-alpha.57d76bed                                ...           2 years ago
  • 1.0.0-alpha.4fcf7385                                ...           2 years ago
  • 1.0.0-alpha.4b619815                                ...           2 years ago
  • 1.0.0-alpha.6d86de07                                ...           2 years ago
  • 1.0.0-alpha.f4cb9dda                                ...           2 years ago
  • 1.0.0-alpha.f69a036f                                ...           2 years ago
  • 1.0.0-alpha.4cc5ed8c                                ...           2 years ago
  • 1.0.0-alpha.ed14f584                                ...           2 years ago
  • 1.0.0-alpha.422828aa                                ...           2 years ago
  • 1.0.0-alpha.38d0c2fd                                ...           2 years ago
  • 1.0.0-alpha.40df8709                                ...           2 years ago
  • 1.0.0-alpha.a949e65a                                ...           3 years ago
  • 1.0.0-alpha.a4551f68                                ...           3 years ago
  • 1.0.0-alpha.67630efa                                ...           3 years ago
  • 1.0.0-alpha.111fd923                                ...           3 years ago
  • 1.0.0-alpha.1491ecb9                                ...           3 years ago
  • 1.0.0-alpha.c39ac6fb                                ...           3 years ago
  • 1.0.0-alpha.6d38ea17                                ...           3 years ago
  • 1.0.0-alpha.943ba673                                ...           3 years ago
  • 1.0.0-alpha.43299dbc                                ...           3 years ago
  • 1.0.0-alpha.1ac018aa                                ...           3 years ago
  • 1.0.0-alpha.7966e92d                                ...           3 years ago
  • 1.0.0-alpha.c4ec8f54                                ...           3 years ago
  • 1.0.0-alpha.03a89e22                                ...           3 years ago
  • 1.0.0-alpha.d976e58a                                ...           3 years ago
  • 1.0.0-alpha.8fb915d2                                ...           3 years ago
  • 1.0.0-alpha.909edea3                                ...           3 years ago
  • 1.0.0-alpha.140af35e                                ...           3 years ago
  • 1.0.0-alpha.f22667f0                                ...           3 years ago
  • 1.0.0-alpha.273c8f1c                                ...           3 years ago
  • 1.0.0-alpha.01faed80                                ...           3 years ago
  • 1.0.0-alpha.198aad73                                ...           3 years ago
  • 1.0.0-alpha.0303b03e                                ...           3 years ago
  • 1.0.0-alpha.a833c103                                ...           3 years ago
  • 1.0.0-alpha.6216a462                                ...           3 years ago
  • 1.0.0-alpha.5c20c074                                ...           3 years ago
  • 1.0.0-alpha.356eb156                                ...           3 years ago
  • 1.0.0-alpha.85e35897                                ...           3 years ago
  • 1.0.0-alpha.e98c583a                                ...           3 years ago
  • 0.5.0-alpha.4c304367                                ...           3 years ago
  • 0.5.0-alpha.a1e647d2                                ...           3 years ago
  • 0.5.0-alpha.49b0a095                                ...           3 years ago
  • 0.5.0-alpha.22a71119                                ...           3 years ago
  • 0.4.0                                ...           3 years ago
  • 0.3.3                                ...           3 years ago
  • 0.3.2                                ...           3 years ago
  • 0.3.1                                ...           3 years ago
  • 0.3.0                                ...           3 years ago
  • 0.2.1                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
  • 0.0.10                                ...           3 years ago
  • 0.0.9                                ...           3 years ago
  • 0.0.8                                ...           3 years ago
  • 0.0.6                                ...           3 years ago
  • 0.0.5                                ...           3 years ago
  • 0.0.4                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Downloads
Today 2
This Week 2
This Month 515
Last Day 24
Last Week 465
Last Month 2,428
Dependencies (4)
Dev Dependencies (12)

Copyright 2014 - 2017 © taobao.org |