wst-client

0.1.7 • Public • Published

WebSocket Time Protocol (WST) Client

A simple client implementation of the WebSocket Time Protocol (WST) in JavaScript, based on the work by M. Gutbrod, et al. in A light-weight time protocol based on common web standards.

Install

yarn add wst-client

Example

import { WST } from "wst-client"

const wst = new WST("ws://127.0.0.1:8080/wst")

wst.onmessage = (message, data) => {
    console.log(message, data)
}

wst.start()

Sponsor

Thanks to our sponsor Cignals footprint charts cryptocurrency charting platform.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.70latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.70
0.1.60
0.1.50
0.1.40
0.1.31
0.1.20
0.1.10
0.1.00

Package Sidebar

Install

npm i wst-client

Weekly Downloads

1

Version

0.1.7

License

MIT

Unpacked Size

9.91 kB

Total Files

8

Last publish

Collaborators

  • bfolkens