wixplosives/engine

Services: remote event listeners are never removed if the environment is suddely terminated

alisey opened this issue · 0 comments

If you subscribe in a browser environment to a service defined in the node environment, and then close or reload the browser window, the unsubscribe method in node will never be invoked.

The engine should detect when an environment was disposed, call all unsubscribe methods, and completely clear it from Communication.