krp-livetiming-client
LiveTiming Client for Kart Racing Pro.
Requirements
Installing
This package was tested under Node.js 16.16.0 x64.
npm install krp-livetiming-client
Documentation
ClientClient
Examples
const clientClient = new ClientClient("http://localhost:6878/")
Function | Description |
---|---|
"handleUpdate" | Callback for update. |
clientClient.handleUpdate((type: string, data: ClientUpdateDataT) => {
console.log(type, data)
})
ServerClient
Examples
const serverClient = new ServerClient("http://localhost:6878/")
Function | Description |
---|---|
"handleConnect" | Callback for connect. |
"handleDisconnect" | Callback for disconnect. |
"handleUpdate" | Callback for update. |
serverClient.handleUpdate((type: string, data: ServerClientDataT) => {
console.log(type, data)
})
License
Released under the MIT License.