npm.io
2.1.0 • Published 9 years ago

xonlinetracker-core

Licence
GPL-3.0
Version
2.1.0
Deps
1
Vulns
0
Weekly
0

XOnlineTracker (Core)

This component is the core of XOnlineTracker which tracks the IP address and the key hash of clients.

Installation

To install this component, type following commands in the terminal:

npm install xonlinetracker-core --save

API

API Description Parameters
Clear() Clear saved data.
Collect(timeout) Collect expired data. timeout (Integer): Expiry timeout.
Query(keyHash) Query addresses mapped to specific key hash. keyHash (String): The hash of the client key.
Renew(address, keyHash) Renew an address-key hash pair. address (String): The address of the client. keyHash (String): The hash of the client key.