0.0.2 • Published 6 years ago
ctrlkit v0.0.2
🧠 ctrlkit ✨
⚠️ THIS PROJECT IS PRE-ALPHA, EVERYTHING WILL BREAK BECAUSE I'M STILL FIGURING OUT THE API SURFACE ⚠️
Exposes a few things useful for interacting with CTRL-Labs' CTRLKit.
- A
customEventsobject — currently only contains thefingerTappedevent (listened for asfingertapped) - A
Socketclass that starts up a WebSocket. You can customize how aCTRL.Socketresponds to data & errors using the following methods:- setOnOpen(onOpenFunction)
- setOnError(onErrorFunction)
- setOnMessage(onMessageFunction)
- Finally, a rudimentary
parseTapDatafunction that parses tap data for you. Eventually this should be a function support all the gestures that CTRL supports, but I'm starting small.
To install all the dependencies run:
npm installTo update the examples:
npm run update-docs0.0.2
6 years ago