Skip to content

Commit 4282a85

Browse files
authored
Release 6.2.2 (#445)
# [6.2.2](https://github.com/kuzzleio/sdk-javascript/releases/tag/6.2.2) (2019-09-11) #### Bug fixes - [ [#437](#437) ] Fix duplicate subscriptions on reconnect ([benoitvidis](https://github.com/benoitvidis)) #### Enhancements - [ [#439](#439) ] Add timeout support to Http protocol ([Aschen](https://github.com/Aschen)) ---
1 parent a204721 commit 4282a85

File tree

18 files changed

+665
-446
lines changed

18 files changed

+665
-446
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"new-cap": 1,
1111
"no-caller": 2,
1212
"no-catch-shadow": 2,
13+
"no-console": 2,
1314
"no-else-return": 2,
1415
"no-extend-native": 2,
1516
"no-extra-bind": 2,

doc/6/protocols/http/constructor/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Http protocol connection options.
3232
| `port` | <pre>number</pre><br/>(`7512`) | Kuzzle server port |
3333
| `sslConnection` | <pre>boolean</pre><br/>(`false`) | Use SSL to connect to Kuzzle server |
3434
| `customRoutes` | <pre>object</pre><br/>(`{}`) | Add custom routes <SinceBadge version="6.2.0"/> |
35+
| `timeout` | <pre>number</pre><br/>(`0`) | Connection timeout in milliseconds (`0` means no timeout)<SinceBadge version="6.2.1"/> |
3536

3637
**Note:**
3738

@@ -46,6 +47,7 @@ They must have the following format:
4647
}
4748
```
4849

50+
4951
## Return
5052

5153
A `Http` protocol instance.

doc/6/protocols/http/properties/index.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,17 @@ order: 10
99

1010
# Properties
1111

12-
| Property name | Type | Description |
13-
| -------------------- | -------- | ---------------------|
14-
| `connected` | <pre>boolean</pre> | Always returns `true` |
15-
| `host` | <pre>string</pre> | Kuzzle server host |
16-
| `http` | <pre>object</pre> | Returns a list of available routes <DeprecatedBadge version="6.2.0"/> |
17-
| `routes` | <pre>object</pre> | Returns a list of available routes <SinceBadge version="6.2.0"/> |
18-
| `port` | <pre>number</pre> | Kuzzle server port |
19-
| `protocol` | <pre>string</pre> | `https` or `http` |
20-
| `ssl` | <pre>boolean</pre> | `true` if ssl is active |
12+
| Property name | Type | Description | Get/Set |
13+
| -------------------- | -------- | ---------------------| ---------|
14+
| `connected` | <pre>boolean</pre> | Always returns `true` | Get |
15+
| `host` | <pre>string</pre> | Kuzzle server host | Get |
16+
| `http` | <pre>object</pre> | Returns a list of available routes <DeprecatedBadge version="6.2.0"/> | Get |
17+
| `routes` | <pre>object</pre> | Returns a list of available routes <SinceBadge version="6.2.0"/> | Get |
18+
| `port` | <pre>number</pre> | Kuzzle server port | Get |
19+
| `protocol` | <pre>string</pre> | `https` or `http` | Get |
20+
| `ssl` | <pre>boolean</pre> | `true` if ssl is active | Get |
21+
| `timeout` | <pre>number</pre> | Connection timeout in milliseconds <SinceBadge version="6.2.1"/>| Get/Set |
22+
23+
**Note:**
24+
25+
A `timeout` of 0 means that the connection will never timeout.

features/support/hooks.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ async function clean () {
3636
}
3737
catch (error) {
3838
// rethrow to get a readable error
39-
console.error(error); // eslint-disable-line no-console
39+
// eslint-disable-next-line no-console
40+
console.error(error);
4041
throw error;
4142
}
4243

0 commit comments

Comments
 (0)