servers
v1.0.8
Published
A ~~service~~ server registry of sort. *nix only
Downloads
71
Readme
Servers
A ~~service~~ server registry of sort.
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