1.1.0-dev.099c9f1 • Published 3 years ago
@homebridge-ws/sdk v1.1.0-dev.099c9f1
@homebridge-ws/sdk
Use this sdk to build accessories.
Usage
import Client, { SwitchState } from "@homebridge-ws/sdk";
const client = new Client("wss://home.bene.dev");
function onSetState(state: SwitchState) {
console.log("SetState", state.value);
}
function onGetState(): SwitchState {
console.log("GetState");
return { value: true };
}
client.subscribe("Switch", "ACCESSORY_ID", "TOKEN", onSetState, onGetState);1.1.0-dev.6746e05
3 years ago
1.1.0-dev.f1e4474
3 years ago
1.1.0-dev.54060de
3 years ago
1.1.0-dev.613cc32
3 years ago
1.1.0-dev.29edb3c
3 years ago
1.1.0-dev.e645ec2
3 years ago
1.1.0-dev.ffc851a
3 years ago
1.1.0-dev.3b22f23
3 years ago
1.1.0-dev.2f82875
3 years ago
1.1.0-dev.72e016f
3 years ago
1.1.0-dev.817899
3 years ago
1.1.0-dev.9d2428c
3 years ago
1.1.0-dev.099c9f1
3 years ago
1.1.0-dev.fde1554
3 years ago
1.1.0-dev.8d74e60
3 years ago
1.1.0-dev.11c55d5
3 years ago
1.1.0
3 years ago
1.0.0
3 years ago