rename render-message event into agen-message
This commit is contained in:
parent
af47f884d1
commit
b46ff83de6
3 changed files with 20 additions and 29 deletions
|
|
@ -23,7 +23,7 @@ interface TextMessage {
|
|||
content: string;
|
||||
}
|
||||
|
||||
const ip = 'ws://localhost';
|
||||
const ip = 'ws://127.0.0.1';
|
||||
const port = 8760;
|
||||
const reconnectTimeout = 3000; //ms
|
||||
let socket: WebSocket;
|
||||
|
|
@ -70,7 +70,7 @@ const receiveMessage = (message: string): void => {
|
|||
backgroundMitt.emit('message-res', parsed);
|
||||
} else if (parsed.modifier === "ai") {
|
||||
backgroundMitt.emit('ipc-renderer', {
|
||||
endpoint: 'render-message',
|
||||
endpoint: 'agent-message',
|
||||
message: parsed
|
||||
});
|
||||
}
|
||||
|
|
@ -103,7 +103,7 @@ export const sendAudio = async (content: Buffer) => {
|
|||
const res = await asyncSend(null, content);
|
||||
|
||||
backgroundMitt.emit('ipc-renderer', {
|
||||
endpoint: 'render-message',
|
||||
endpoint: 'agent-message',
|
||||
message: res
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue