Skip to content
This repository has been archived by the owner on Oct 19, 2018. It is now read-only.

Commit

Permalink
Merge pull request #65 from cubic-js/development
Browse files Browse the repository at this point in the history
Fix long-term reconnect behavior
  • Loading branch information
Kaptard authored Sep 13, 2018
2 parents 057e936 + 4c1bc7e commit eaf0b11
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,4 @@ client.emit(ev, data)


## License
[MIT](https://github.com/nexus-devs/npm-cubic-client/blob/master/LICENSE.md)
[MIT](/LICENSE.md)
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.7.0",
"babelrc-rollup": "^3.0.0",
"cubic-api": "1.2.1",
"cubic-auth": "1.1.0",
"cubic-api": "^1.2.1",
"cubic-auth": "^1.1.0",
"cubic-client": "^1.1.0",
"cubic-core": "1.1.2",
"cubic-loader": "1.1.1",
"cubic-core": "^1.1.2",
"cubic-loader": "^1.1.1",
"eslint": "^5.1.0",
"eslint-config-standard": "^11.0.0",
"eslint-config-standard": "^12.0.0",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-node": "^7.0.0",
"eslint-plugin-promise": "^3.8.0",
"eslint-plugin-standard": "^3.1.0",
"eslint-plugin-promise": "^4.0.0",
"eslint-plugin-standard": "^4.0.0",
"mocha": "^5.2.0",
"rollup": "^0.62.0",
"rollup": "^0.65.0",
"rollup-plugin-babel": "^3.0.7",
"rollup-plugin-cleanup": "^3.0.0",
"rollup-plugin-commonjs": "^9.1.3",
Expand Down
7 changes: 2 additions & 5 deletions src/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,8 @@ class Connection {
*/
async setClient (skipListeners) {
let sioConfig = this.auth.access_token ? {
query: 'bearer=' + this.auth.access_token,
reconnection: false
} : {
reconnection: false
}
query: 'bearer=' + this.auth.access_token
} : {}

// Connect to parent namespace
this.client = io.connect(this.options.api_url + this.options.namespace, sioConfig)
Expand Down

0 comments on commit eaf0b11

Please sign in to comment.