Api for communication between different windows


it seems that when a new window is opened, Atom spawns a new instance and reloads all the resources. This makes communication between different windows not possible. Is there any way to control cross windows actions?

For example, if command 1 is launched in window 1, then all other windows will launch command 2.


Not knowing what you’re trying to achieve, this seems like a bad idea, but if you insist then this can rather easily be solved via some form of IPC. I’d personally go for some form of socket implementation where every instance of your package is both a producer and consumer of messages.