@ionic/discover
Simple UDP based protocol for service discovery implemented in pure JS. Not mDNS or bonjour.
Last updated 7 years ago by manucorporat .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm 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 (5 years ago)
  • 1.0.0-alpha.0405736c                                ...           canary (7 years ago)
  • 3.1.8                                ...           latest (a year ago)
  • 1.0.0-rc.13                                ...           rc (6 years ago)
  • 1.1.0-testing.73b2b888                                ...           testing (6 years ago)

139 Versions

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

© 2010 - cnpmjs.org x YWFE | Home | YWFE