{"action":"created","issue":{"url":"https://api.github.com/repos/socketio/engine.io-client/issues/406","labels_url":"https://api.github.com/repos/socketio/engine.io-client/issues/406/labels{/name}","comments_url":"https://api.github.com/repos/socketio/engine.io-client/issues/406/comments","events_url":"https://api.github.com/repos/socketio/engine.io-client/issues/406/events","html_url":"https://github.com/socketio/engine.io-client/issues/406","id":96290047,"number":406,"title":"Incorrect event used for unloadHandler in polling-xhr.js?","user":{"login":"sgronblo","id":320449,"avatar_url":"https://avatars.githubusercontent.com/u/320449?v=3","gravatar_id":"","url":"https://api.github.com/users/sgronblo","html_url":"https://github.com/sgronblo","followers_url":"https://api.github.com/users/sgronblo/followers","following_url":"https://api.github.com/users/sgronblo/following{/other_user}","gists_url":"https://api.github.com/users/sgronblo/gists{/gist_id}","starred_url":"https://api.github.com/users/sgronblo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgronblo/subscriptions","organizations_url":"https://api.github.com/users/sgronblo/orgs","repos_url":"https://api.github.com/users/sgronblo/repos","events_url":"https://api.github.com/users/sgronblo/events{/privacy}","received_events_url":"https://api.github.com/users/sgronblo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-21T11:16:21Z","updated_at":"2016-01-16T07:42:25Z","closed_at":null,"body":"On our projects we seemed to be having some problems when registering our own `beforeunload` handlers due to the fact that engine.io-client also has a handler that seems to abort requests on `beforeunload`. I traced the commit that introduces this change to this one: 9ea0abc3169da5b5a9138d19a47074f9b5ca8889\r\n\r\nThe message seems to say \"abort the request when the window is unloaded\", so why is this functionality registered under `beforeunload` instead of `unload`?"},"comment":{"url":"https://api.github.com/repos/socketio/engine.io-client/issues/comments/172169953","html_url":"https://github.com/socketio/engine.io-client/issues/406#issuecomment-172169953","issue_url":"https://api.github.com/repos/socketio/engine.io-client/issues/406","id":172169953,"user":{"login":"nkzawa","id":775227,"avatar_url":"https://avatars.githubusercontent.com/u/775227?v=3","gravatar_id":"","url":"https://api.github.com/users/nkzawa","html_url":"https://github.com/nkzawa","followers_url":"https://api.github.com/users/nkzawa/followers","following_url":"https://api.github.com/users/nkzawa/following{/other_user}","gists_url":"https://api.github.com/users/nkzawa/gists{/gist_id}","starred_url":"https://api.github.com/users/nkzawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkzawa/subscriptions","organizations_url":"https://api.github.com/users/nkzawa/orgs","repos_url":"https://api.github.com/users/nkzawa/repos","events_url":"https://api.github.com/users/nkzawa/events{/privacy}","received_events_url":"https://api.github.com/users/nkzawa/received_events","type":"User","site_admin":false},"created_at":"2016-01-16T07:42:25Z","updated_at":"2016-01-16T07:42:25Z","body":"Actually I'm not sure about the reason. cc @lpinca @rauchg"}}