Skip to content

ivan-loh/servers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Servers

A service server registry of sort.

NPM

Build Status Dependencies Status

Install

npm install -g servers

Usage

servers-master

Starts a registry server to store request from other clients and to inform others on the location of other servers

Options Description
port port the server listens to for request
key Authentication key to use
servers-master --port 9999 --key test

servers-client

Submits a registry entry into the registry server or get the registry entry from the server

Options Description
port port of the listening server
key Authentication key to use
host host address of the server
name name of this client server, by default will try to obtain hostname of machine
mode mode of this command - set will update the servers list - get will fetch the latest server list stored
server-client --port 9999 --key test --host http://localhost --name devServer --mode set
server-client --port 9999 --key test --host http://localhost --name devServer --mode get

as a module example

a sample script that i am using and a sample outcome: Sample of lsserver output

About

Server registry, to maintain a list of servers that keep changing their IPs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published