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.
yarn add wst-client
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()
Thanks to our sponsor Cignals footprint charts cryptocurrency charting platform.