0.0.1 • Published 3 years ago

sntp-client v0.0.1

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
3 years ago

sntp-client

Implementation of the SNTP client for CapacitorJS.

Install

npm install sntp-client
npx cap sync

API

initialize(...)

initialize(options: SntpInitOptions) => Promise<void>
ParamType
optionsSntpInitOptions

getNetworkTime()

getNetworkTime() => Promise<NetworkTime>

Returns: Promise<NetworkTime>


Interfaces

SntpInitOptions

PropType
serverstring
timeoutnumber

NetworkTime

PropType
timenumber
0.0.1

3 years ago