We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1a416e commit 3c098f1Copy full SHA for 3c098f1
app.js
@@ -13,11 +13,11 @@ rl.question('Enter your wsURL: ', (wsURL) => {
13
const ws = new WebSocket(wsURL)
14
ws.on('open', e => {
15
console.log('Open,', e);
16
- const client = new Client('localhost', 9000);
17
ws.on('message', ev => {
18
const data = JSON.parse(ev)
19
if (!data.data.heartRate) return console.log('Got heart rate: 0 bpm, skipping parameter update...');
20
console.log('Got heart rate: %s bpm', data.data.heartRate);
+ const client = new Client('localhost', 9000);
21
// 参考自该代码:
22
// https://github.com/vard88508/vrc-osc-miband-hrm/blob/f60c3422c36921d317168ed38b1362528e8364e9/app.js#L24-L50
23
const Heartrate = {
0 commit comments