{"action":"closed","issue":{"url":"https://api.github.com/repos/vert-x3/vertx-bus-bower/issues/6","repository_url":"https://api.github.com/repos/vert-x3/vertx-bus-bower","labels_url":"https://api.github.com/repos/vert-x3/vertx-bus-bower/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/vert-x3/vertx-bus-bower/issues/6/comments","events_url":"https://api.github.com/repos/vert-x3/vertx-bus-bower/issues/6/events","html_url":"https://github.com/vert-x3/vertx-bus-bower/issues/6","id":139306234,"number":6,"title":"vertx3-eventbus-client this.sockJSConn.onClose does not pass the Close event along to the implementing function.","user":{"login":"SelcukTekin","id":17449145,"avatar_url":"https://avatars.githubusercontent.com/u/17449145?v=3","gravatar_id":"","url":"https://api.github.com/users/SelcukTekin","html_url":"https://github.com/SelcukTekin","followers_url":"https://api.github.com/users/SelcukTekin/followers","following_url":"https://api.github.com/users/SelcukTekin/following{/other_user}","gists_url":"https://api.github.com/users/SelcukTekin/gists{/gist_id}","starred_url":"https://api.github.com/users/SelcukTekin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SelcukTekin/subscriptions","organizations_url":"https://api.github.com/users/SelcukTekin/orgs","repos_url":"https://api.github.com/users/SelcukTekin/repos","events_url":"https://api.github.com/users/SelcukTekin/events{/privacy}","received_events_url":"https://api.github.com/users/SelcukTekin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vert-x3/vertx-bus-bower/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/vert-x3/vertx-bus-bower/labels/to%20review","name":"to review","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"pmlopes","id":849467,"avatar_url":"https://avatars.githubusercontent.com/u/849467?v=3","gravatar_id":"","url":"https://api.github.com/users/pmlopes","html_url":"https://github.com/pmlopes","followers_url":"https://api.github.com/users/pmlopes/followers","following_url":"https://api.github.com/users/pmlopes/following{/other_user}","gists_url":"https://api.github.com/users/pmlopes/gists{/gist_id}","starred_url":"https://api.github.com/users/pmlopes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmlopes/subscriptions","organizations_url":"https://api.github.com/users/pmlopes/orgs","repos_url":"https://api.github.com/users/pmlopes/repos","events_url":"https://api.github.com/users/pmlopes/events{/privacy}","received_events_url":"https://api.github.com/users/pmlopes/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2016-03-08T15:30:47Z","updated_at":"2016-03-09T08:58:10Z","closed_at":"2016-03-09T08:58:10Z","body":"The this.sockJSConn.onClose function specified here:\r\n\r\nhttps://github.com/vert-x3/vertx-bus-bower/blob/master/vertx-eventbus.js#L106\r\n\r\nShould pass the https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent along with the self.onclose() function below it like so:\r\n\r\n```javascript\r\n   this.sockJSConn.onclose = function (closeEvent) {\r\n      self.state = EventBus.CLOSED;\r\n      if (pingTimerID) clearInterval(pingTimerID);\r\n      self.onclose && self.onclose(closeEvent);\r\n    };\r\n\r\n```\r\n\r\nThis way any implementing calls can handle specific CloseEvent.Codes accordingly"}}