add base64 audio recorder
This commit is contained in:
parent
706bde4d58
commit
5b0d462d1d
12 changed files with 205 additions and 133 deletions
|
|
@ -34,10 +34,7 @@ const wss = new WebSocket.Server({
|
|||
wss.on("connection", function connection(ws, req) {
|
||||
ws.on("message", function incoming(message) {
|
||||
const parsed = JSON.parse(message)
|
||||
if (parsed.audio) {
|
||||
console.log(parsed.audio)
|
||||
}
|
||||
console.log("received: %s:", parsed);
|
||||
console.log(parsed)
|
||||
});
|
||||
|
||||
const ip = req.socket.remoteAddress;
|
||||
|
|
|
|||
Loading…
Reference in a new issue