1.0.5 • Published 11 months ago

krp-livetiming-client v1.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

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/")
FunctionDescription
"handleUpdate"Callback for update.
clientClient.handleUpdate((type: string, data: ClientUpdateDataT) => {
    console.log(type, data)
})

ServerClient

Examples

const serverClient = new ServerClient("http://localhost:6878/")
FunctionDescription
"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.

1.0.5

11 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago