krp-livetiming-client
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i krp-livetiming-client

Weekly Downloads

2

Version

1.0.5

License

MIT

Unpacked Size

10 kB

Total Files

12

Last publish

Collaborators

  • fynnix