ProtectedcurrentProtected ReadonlyfrontendProtected ReadonlyonProtected ReadonlyonProtected ReadonlyonProtected ReadonlyonStatic ReadonlyNO_ProtectedcreateProtectedcreateProtectedcreateProtectedcreateProtectedcreateCreates a web socket for the given url
ProtectedcreateThe handler to reach in the backend.
ProtectedhandleProtectednegogiateProtectednegotiateCalled when an application is stopped or unloaded.
Note that this is implemented using window.beforeunload which doesn't allow any asynchronous code anymore.
I.e. this is the last tick.
Customized connection provider between the frontend and the backend in electron environment. This customized connection provider makes sure the websocket connection does not try to reconnect once the electron-browser window is refreshed. Otherwise, backend resources are not disposed.