add 16int audio recorder
This commit is contained in:
parent
310e028739
commit
706bde4d58
7 changed files with 125 additions and 42 deletions
|
|
@ -55,7 +55,7 @@ function createWindow() {
|
|||
|
||||
ws = new WebSocket("ws://localhost:8080");
|
||||
ws.on("open", function open() {
|
||||
ws.send("hernandeze2@xavier.edu");
|
||||
// ws.send("hernandeze2@xavier.edu");
|
||||
});
|
||||
ws.on("message", (message: any) => {
|
||||
const parsed = JSON.parse(message);
|
||||
|
|
@ -67,8 +67,8 @@ function createWindow() {
|
|||
}
|
||||
});
|
||||
|
||||
ipcMain.on('send-message', (Event: any, payload: any) => {
|
||||
const stringMessage = JSON.stringify(payload.message)
|
||||
ipcMain.on('send-message', (Event: any, message: any) => {
|
||||
const stringMessage = JSON.stringify(message)
|
||||
ws.send(stringMessage);
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue