| Error stacktrace (only in development mode) |
diff --git a/src/sdk-reference/js/6/kuzzle-error/properties/index.md b/src/sdk-reference/js/6/kuzzle-error/properties/index.md
new file mode 100644
index 000000000..1781c571c
--- /dev/null
+++ b/src/sdk-reference/js/6/kuzzle-error/properties/index.md
@@ -0,0 +1,13 @@
+---
+layout: sdk.html.hbs
+title: Properties
+description: KuzzleError Properties
+---
+
+# Properties
+
+| Property name | Type | Description |
+| -------------------- | -------- | --------------------------------------- |
+| `message` |
string
| Error message |
+| `status` |
number
| Error status code |
+| `stack` |
string
| Error stacktrace (only in development mode) |
diff --git a/src/sdk-reference/js/6/kuzzle/introduction/index.md b/src/sdk-reference/js/6/kuzzle/introduction/index.md
index febf7346e..e203dbd6c 100644
--- a/src/sdk-reference/js/6/kuzzle/introduction/index.md
+++ b/src/sdk-reference/js/6/kuzzle/introduction/index.md
@@ -32,70 +32,3 @@ The following protocols are available in the SDK JS 6:
You can tell the Kuzzle SDK to attach a set of "volatile" data to each request. You can set it as an object contained in the `volatile` field of the Kuzzle constructor. The response to a request containing volatile data will contain the same data in its `volatile` field. This can be useful, for example, in real-time notifications for [user join/leave notifications]({{site_base_path}}api/1/essentials/volatile-data/) to provide additional informations about the client who sent the request.
Note that you can also set volatile data on a per-request basis (on requests that accept a `volatile` field in their `options` argument). In this case, per-request volatile data will be merged with the global `volatile` object set in the constructor. Per-request fields will override global ones.
-
-## Properties
-
-Available properties.
-
-| Property name | Type | Description | Writable? |
-| -------------------- | -------- | --------------------------------------- | :-------: |
-| `autoQueue` |
boolean
| Automatically queue all requests during offline mode | Yes |
-| `autoReplay` |
boolean
| Automatically replay queued requests on a `reconnected` event | Yes |
-| `autoResubscribe` |
boolean
| Automatically renew all subscriptions on a `reconnected` event | Yes |
-| `jwt` |
string
| Token used in requests for authentication | Yes |
-| `offlineQueue` |
object[]
| Contains the queued requests during offline mode | No |
-| `offlineQueueLoader` |
function
| Called before dequeuing requests after exiting offline mode, to add items at the beginning of the offline queue | Yes |
-| `protocol` |
Protocol
| Protocol used by the SDK | No |
-| `queueFilter` |
function
| Called during offline mode. Takes a request object as arguments and returns a boolean, indicating if a request can be queued | Yes |
-| `queueMaxSize` |
number
| Number of maximum requests kept during offline mode| Yes |
-| `queueTTL` |
number
| Time a queued request is kept during offline mode, in milliseconds | Yes |
-| `replayInterval` |
number
| Delay between each replayed requests | Yes |
-| `volatile` |
object
| Common volatile data, will be sent to all future requests | Yes |
-
-### offlineQueueLoader
-
-The `offlineQueueLoader` property must be set with a function of one of the following formats:
-
-```js
-Object[] offlineQueueLoader()
-
-Promise
| Automatically reconnect after a connection loss | No |
-| `reconnectionDelay` |
number
| Number of milliseconds between reconnection attempts | No |
-
-**Notes:**
-
-- updates to `autoReconnect` and `reconnectionDelay` properties will only take effect on next `connect` call
diff --git a/src/sdk-reference/js/6/socketio/properties/index.md b/src/sdk-reference/js/6/socketio/properties/index.md
new file mode 100644
index 000000000..8b9bac441
--- /dev/null
+++ b/src/sdk-reference/js/6/socketio/properties/index.md
@@ -0,0 +1,17 @@
+---
+layout: sdk.html.hbs
+title: Properties
+description: SocketIO class properties
+order: 100
+---
+
+# Properties
+
+| Property name | Type | Description |
+| -------------------- | -------- | ---------------------|
+| `autoReconnect` |
boolean
| Automatically reconnect after a connection loss |
+| `reconnectionDelay` |
number
| Number of milliseconds between reconnection attempts |
+
+
+Updates to autoReconnect and reconnectionDelay properties will only take effect on the next `connect` call.
+
| User internal content |
+
+### content
+
+The `content` property is an object containing, alongside custom defined values, the following generic properties:
+
+| Property | Type | Description |
+|--- |--- |--- |
+| `profileIds` |
string[]
| Profiles IDs for this user |
+| `_kuzzle_info` |
object
| [Kuzzle metadata]({{ site_base_path }}guide/1/essentials/document-metadata) |
diff --git a/src/sdk-reference/js/6/websocket/introduction/index.md b/src/sdk-reference/js/6/websocket/introduction/index.md
index e69ded9b2..8b172d7d2 100644
--- a/src/sdk-reference/js/6/websocket/introduction/index.md
+++ b/src/sdk-reference/js/6/websocket/introduction/index.md
@@ -12,16 +12,3 @@ Inherits from: [KuzzleEventEmitter]({{ site_base_path }}sdk-reference/js/6/kuzzl
The WebSocket protocol can be used by an instance of the SDK to communicate with your Kuzzle server.
This protocol allows you to use all the features of Kuzzle, including [real-time notifications]({{ site_base_path }}sdk-reference/js/6/realtime-notifications).
-
-## Properties
-
-Available properties.
-
-| Property name | Type | Description | Writable? |
-| -------------------- | -------- | --------------------------------------- | :-------: |
-| `autoReconnect` |
boolean
| Automatically reconnect after a connection loss | No |
-| `reconnectionDelay` |
number
| Number of milliseconds between reconnection attempts | No |
-
-**Notes:**
-
-- updates to `autoReconnect` and `reconnectionDelay` properties will only take effect on next `connect` call
diff --git a/src/sdk-reference/js/6/websocket/properties/index.md b/src/sdk-reference/js/6/websocket/properties/index.md
new file mode 100644
index 000000000..f2a4f3e0f
--- /dev/null
+++ b/src/sdk-reference/js/6/websocket/properties/index.md
@@ -0,0 +1,17 @@
+---
+layout: sdk.html.hbs
+title: Properties
+description: Websocket class properties
+order: 100
+---
+
+# Properties
+
+| Property name | Type | Description |
+| -------------------- | -------- | ---------------------|
+| `autoReconnect` |
boolean
| Automatically reconnect after a connection loss |
+| `reconnectionDelay` |
number
| Number of milliseconds between reconnection attempts |
+
+
+Updates to autoReconnect and reconnectionDelay properties will only take effect on the next `connect` call.
+
From 1485ffac3574fd42dd59c437378931303406ae3c Mon Sep 17 00:00:00 2001
From: scottinet
Date: Wed, 10 Apr 2019 16:55:31 +0200
Subject: [PATCH 2/3] [JS SDK] document what the auth actions do to the jwt
class property
---
src/sdk-reference/js/6/auth/login/index.md | 4 +++-
src/sdk-reference/js/6/auth/logout/index.md | 6 ++++--
src/sdk-reference/js/6/auth/refresh-token/index.md | 5 ++++-
3 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/src/sdk-reference/js/6/auth/login/index.md b/src/sdk-reference/js/6/auth/login/index.md
index 7bee0fe8d..783f476fc 100644
--- a/src/sdk-reference/js/6/auth/login/index.md
+++ b/src/sdk-reference/js/6/auth/login/index.md
@@ -8,7 +8,9 @@ description: Authenticate a user
Authenticates a user.
-If this action is successful, all further requests emitted by this SDK instance will be in the name of the authenticated user, until either the authenticated token expires, the [logout]({{ site_base_path }}sdk-reference/js/6/auth/logout) action is called, or the [jwt]({{ site_base_path }}sdk-reference/js/6/kuzzle/introduction/#properties) property is manually unset.
+If this action is successful, then the [jwt]({{ site_base_path }}sdk-reference/js/6/kuzzle/properties) property of this class instance is set to the new authentication token.
+
+All further requests emitted by this SDK instance will be in the name of the authenticated user, until either the authenticated token expires, the [logout]({{ site_base_path }}sdk-reference/js/6/auth/logout) action is called, or the `jwt` property is manually set to another value.
## Arguments
diff --git a/src/sdk-reference/js/6/auth/logout/index.md b/src/sdk-reference/js/6/auth/logout/index.md
index 45b127410..a3a1200ed 100644
--- a/src/sdk-reference/js/6/auth/logout/index.md
+++ b/src/sdk-reference/js/6/auth/logout/index.md
@@ -6,11 +6,13 @@ description: Revokes the user's token & unsubscribe them from registered rooms.
# logout
-Revokes the user's authentication token.
+Revokes the current authentication token.
If there were any, real-time subscriptions are cancelled.
-
+If this action is successful, then the [jwt]({{ site_base_path }}sdk-reference/js/6/kuzzle/properties) property of this class instance is unset.
+
+## Arguments
```javascript
logout ()
diff --git a/src/sdk-reference/js/6/auth/refresh-token/index.md b/src/sdk-reference/js/6/auth/refresh-token/index.md
index 3e94bc254..858e8afbf 100644
--- a/src/sdk-reference/js/6/auth/refresh-token/index.md
+++ b/src/sdk-reference/js/6/auth/refresh-token/index.md
@@ -10,7 +10,10 @@ description: Refresh an authentication token
Refreshes a valid, non-expired authentication token.
-If this action is successful, all further requests emitted by this SDK instance will use the refreshed authentication token.
+If this action is successful, then the [jwt]({{ site_base_path }}sdk-reference/js/6/kuzzle/properties) property of this class instance is set to the new authentication token.
+
+All further requests emitted by this SDK instance will be in the name of the authenticated user, until either the authenticated token expires, the [logout]({{ site_base_path }}sdk-reference/js/6/auth/logout) action is called, or the `jwt` property is manually set to another value.
+
## Arguments
From dfa8eec0d565c832734f4a477e4dd89a957b12cf Mon Sep 17 00:00:00 2001
From: Luca Marchesini
Date: Tue, 16 Apr 2019 09:55:42 +0200
Subject: [PATCH 3/3] Apply @xbill82's suggestions
Co-Authored-By: scottinet
---
src/sdk-reference/js/6/auth/login/index.md | 2 +-
src/sdk-reference/js/6/auth/refresh-token/index.md | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/sdk-reference/js/6/auth/login/index.md b/src/sdk-reference/js/6/auth/login/index.md
index 783f476fc..f8fe9d567 100644
--- a/src/sdk-reference/js/6/auth/login/index.md
+++ b/src/sdk-reference/js/6/auth/login/index.md
@@ -10,7 +10,7 @@ Authenticates a user.
If this action is successful, then the [jwt]({{ site_base_path }}sdk-reference/js/6/kuzzle/properties) property of this class instance is set to the new authentication token.
-All further requests emitted by this SDK instance will be in the name of the authenticated user, until either the authenticated token expires, the [logout]({{ site_base_path }}sdk-reference/js/6/auth/logout) action is called, or the `jwt` property is manually set to another value.
+All further requests emitted by this SDK instance will be on behalf of the authenticated user, until either the authenticated token expires, the [logout]({{ site_base_path }}sdk-reference/js/6/auth/logout) action is called, or the `jwt` property is manually set to another value.
## Arguments
diff --git a/src/sdk-reference/js/6/auth/refresh-token/index.md b/src/sdk-reference/js/6/auth/refresh-token/index.md
index 858e8afbf..bcfb72a5e 100644
--- a/src/sdk-reference/js/6/auth/refresh-token/index.md
+++ b/src/sdk-reference/js/6/auth/refresh-token/index.md
@@ -12,7 +12,7 @@ Refreshes a valid, non-expired authentication token.
If this action is successful, then the [jwt]({{ site_base_path }}sdk-reference/js/6/kuzzle/properties) property of this class instance is set to the new authentication token.
-All further requests emitted by this SDK instance will be in the name of the authenticated user, until either the authenticated token expires, the [logout]({{ site_base_path }}sdk-reference/js/6/auth/logout) action is called, or the `jwt` property is manually set to another value.
+All further requests emitted by this SDK instance will be on behalf of the authenticated user, until either the authenticated token expires, the [logout]({{ site_base_path }}sdk-reference/js/6/auth/logout) action is called, or the `jwt` property is manually set to another value.
## Arguments