Replicate BrowserSync syncing using Webview, IPC, events #154
Labels
Help Wanted
Extra attention is needed
Priority: 2
Urgent, but not critical importance
Type: Enhancement
Type: Performance
BrowserSync is great, but it may be overkill for the needs of Reflex. Running into difficulties using the
proxy
function—especially onhttp
sites—and the performance of the server it runs seems to be super slow.Instead of running BrowserSync's server and having to load that URL, we could instead just handle the events between the Webviews that are already rendered! The performance should be far superior.
We can use IPC to communicate between a Webview—which has access to the underlying document data—and the Electron process. From there, we can
emit
with an event bus to keep track of events being fired, which element they're on, etc.Try it out on the
webview-event-sync
branch.Reflex should synchronize all these events between Webviews:
Checklist
DOMElement
and be able to find that element on the other WebviewsThe text was updated successfully, but these errors were encountered: