socket connection is not terminated on closing window, when client.create() is called from browser process. · Issue #40 · Quramy/electron-connect · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Single Window Scenario : This is mostly applicable to OS X, where app.quit() is not called on window-all-closed event (as a result of second bullet point in Step 1 below). On other platforms, app.quit() gets called, which would force close the socket connection.
Multiple Window Scenario : The issue can be seen, when any of the multiple windows is closed.
Steps to recreate the issue
As shown in the code below, make sure the following are done.
call client.create() in the browser process (app.js)
on app window-all-closed event, make sure app.quit() is not called on OS X.
<!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8"><title>Simple example app</title></head><body><h1>Hello, Electron</h1><scriptsrc="index.js"></script></body></html>
Run gulp serve command.
Close the window.
Expected Behavior
this.close() gets called and socket is terminated.
Actual Behavior
beforeunload event handler is not getting invoked. Hence, socket doesn't get terminated.
The text was updated successfully, but these errors were encountered:
ssreekanth
added a commit
to ssreekanth/electron-connect
that referenced
this issue
Jun 5, 2016
ssreekanth
changed the title
'beforeunload' event handler in client.js not getting invoked, when client.create() is called from browser process.
socket connection is not getting closed, when client.create() is called from browser process.
Jun 5, 2016
ssreekanth
changed the title
socket connection is not getting closed, when client.create() is called from browser process.
socket connection is not terminated on closing window, when client.create() is called from browser process.
Jun 7, 2016
ssreekanth
added a commit
to ssreekanth/electron-connect
that referenced
this issue
Jun 10, 2016
Uh oh!
There was an error while loading. Please reload this page.
Single Window Scenario : This is mostly applicable to OS X, where
app.quit()
is not called onwindow-all-closed
event (as a result of second bullet point in Step 1 below). On other platforms, app.quit() gets called, which would force close the socket connection.Multiple Window Scenario : The issue can be seen, when any of the multiple windows is closed.
Steps to recreate the issue
client.create()
in the browser process (app.js)window-all-closed
event, make sureapp.quit()
is not called on OS X.close
event, set window handle tonull
.app.js
index.html
gulp serve
command.Expected Behavior
this.close()
gets called and socket is terminated.Actual Behavior
beforeunload
event handler is not getting invoked. Hence, socket doesn't get terminated.The text was updated successfully, but these errors were encountered: