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

Commit eaf0b11

Browse files
authored
Merge pull request #65 from cubic-js/development
Fix long-term reconnect behavior
2 parents 057e936 + 4c1bc7e commit eaf0b11

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,4 +209,4 @@ client.emit(ev, data)
209209

210210

211211
## License
212-
[MIT](https://github.com/nexus-devs/npm-cubic-client/blob/master/LICENSE.md)
212+
[MIT](/LICENSE.md)

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@
2424
"babel-plugin-transform-runtime": "^6.23.0",
2525
"babel-preset-env": "^1.7.0",
2626
"babelrc-rollup": "^3.0.0",
27-
"cubic-api": "1.2.1",
28-
"cubic-auth": "1.1.0",
27+
"cubic-api": "^1.2.1",
28+
"cubic-auth": "^1.1.0",
2929
"cubic-client": "^1.1.0",
30-
"cubic-core": "1.1.2",
31-
"cubic-loader": "1.1.1",
30+
"cubic-core": "^1.1.2",
31+
"cubic-loader": "^1.1.1",
3232
"eslint": "^5.1.0",
33-
"eslint-config-standard": "^11.0.0",
33+
"eslint-config-standard": "^12.0.0",
3434
"eslint-plugin-import": "^2.13.0",
3535
"eslint-plugin-node": "^7.0.0",
36-
"eslint-plugin-promise": "^3.8.0",
37-
"eslint-plugin-standard": "^3.1.0",
36+
"eslint-plugin-promise": "^4.0.0",
37+
"eslint-plugin-standard": "^4.0.0",
3838
"mocha": "^5.2.0",
39-
"rollup": "^0.62.0",
39+
"rollup": "^0.65.0",
4040
"rollup-plugin-babel": "^3.0.7",
4141
"rollup-plugin-cleanup": "^3.0.0",
4242
"rollup-plugin-commonjs": "^9.1.3",

src/connection.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,8 @@ class Connection {
2727
*/
2828
async setClient (skipListeners) {
2929
let sioConfig = this.auth.access_token ? {
30-
query: 'bearer=' + this.auth.access_token,
31-
reconnection: false
32-
} : {
33-
reconnection: false
34-
}
30+
query: 'bearer=' + this.auth.access_token
31+
} : {}
3532

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

0 commit comments

Comments
 (0)