Sharing `Map` object between main and randerer process


As the title suggests, I have a Map object containing data that is updated every so often. Both the main process and the renderer make use of said data. I read that I can access things from the main process in the renderer by using Electron#remote but it appears to be limited to containing whatever data it was initialized with. Is there another way to do it?

My current solution would be to call on WebContents#send with the result of Array.from(myMap) passed as a parameter and have a handler on the renderer process updating a second map. Though I worry about the speed of it, as the data might get a little big.