Skip to content

Commit 3c098f1

Browse files
committed
stupid edit
1 parent a1a416e commit 3c098f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ rl.question('Enter your wsURL: ', (wsURL) => {
1313
const ws = new WebSocket(wsURL)
1414
ws.on('open', e => {
1515
console.log('Open,', e);
16-
const client = new Client('localhost', 9000);
1716
ws.on('message', ev => {
1817
const data = JSON.parse(ev)
1918
if (!data.data.heartRate) return console.log('Got heart rate: 0 bpm, skipping parameter update...');
2019
console.log('Got heart rate: %s bpm', data.data.heartRate);
20+
const client = new Client('localhost', 9000);
2121
// 参考自该代码:
2222
// https://github.com/vard88508/vrc-osc-miband-hrm/blob/f60c3422c36921d317168ed38b1362528e8364e9/app.js#L24-L50
2323
const Heartrate = {

0 commit comments

Comments
 (0)