Skip to content

ramclen/DiscoverProtocol

Repository files navigation

DiscoverProtocol

npm

Request service information to unknown server locations

Install

$ npm install @ramclen/discover-protocol

Usage

Server Side

import UDPServer, { ServerDiscoverProtocol } from '@ramclen/discover-protocol/server';

new UDPServer(new ServerDiscoverProtocol('ServiceName', {info: 'content'}) ).run();

Client Side

import DiscoverClient, { ClientDiscoverProtocol } from '@ramclen/discover-protocol/client';

new DiscoverClient(new ClientDiscoverProtocol('ServiceName', 'ProtocolName'))
  .run()
  .then(information => {
    console.log(information.info);
  });

About

Request service information to unknown server locations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published