add 16int audio recorder
This commit is contained in:
parent
310e028739
commit
706bde4d58
7 changed files with 125 additions and 42 deletions
|
|
@ -33,7 +33,11 @@ const wss = new WebSocket.Server({
|
|||
|
||||
wss.on("connection", function connection(ws, req) {
|
||||
ws.on("message", function incoming(message) {
|
||||
console.log("received: %s:", message);
|
||||
const parsed = JSON.parse(message)
|
||||
if (parsed.audio) {
|
||||
console.log(parsed.audio)
|
||||
}
|
||||
console.log("received: %s:", parsed);
|
||||
});
|
||||
|
||||
const ip = req.socket.remoteAddress;
|
||||
|
|
|
|||
Loading…
Reference in a new issue