0

I am working on a chat app in Electron(21.1.1), Electron Builder(23.6.0) with Vue2, Nuxt2 anda Custom Vuetify Theme. I want to make it so I can open individual chats in new windows, like Skype and Teams do, for example.

My current solution is to open a new window and point the vue router from it to a view called chat

await chatWin.loadURL(`${_NUXT_URL_}#chat`);

It works, but this loads the entire app and all it's dependencies so it uses a lot of RAM. Like ~100 Mb for just one window.

Also I use the ipcRender/ipcMain messaging system from Electron to send/receive messages between the main window and child windows. The chat websocket connection is only in the main window. Is this aproach right ? Or should I use a shared webworker?

What would be the best way to make this app ? Thank you !

nexus370
  • 31
  • 4

0 Answers0