You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
417 B
20 lines
417 B
import QtWebSockets 1.1 |
|
|
|
import "." |
|
|
|
|
|
WebSocket { |
|
url: "ws://" + Common.wsIp + ":" + Common.wsPort |
|
active: true |
|
|
|
onStatusChanged: { |
|
if(status === WebSocket.Closed || status === WebSocket.Error) { |
|
Common.rebootFlag = true; |
|
} |
|
} |
|
|
|
onBinaryMessageReceived: { |
|
let arrayBuffer = new Float32Array(message); |
|
Common.audioDataUpdated(arrayBuffer.slice()); |
|
} |
|
}
|
|
|