Skip to content

Commit 6649e27

Browse files
authored
Merge pull request #4270 from segmentio/vanand17-patch-6
Update context.network fields
2 parents bad673c + a2fd822 commit 6649e27

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/connections/spec/common.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ Context is a dictionary of extra information that provides useful context about
125125
| `ip` | String | Current user's IP address. |
126126
| `library` | Object | Dictionary of information about the library making the requests to the API, containing `name` and `version`. |
127127
| `locale` | String | Locale string for the current user, for example `en-US`. |
128-
| `network` | Object | Dictionary of information about the current network connection, containing `bluetooth`, `carrier`, `cellular`, and `wifi`. |
128+
| `network` | Object | Dictionary of information about the current network connection, containing `bluetooth`, `carrier`, `cellular`, and `wifi`.
129+
If the `context.network.cellular` and `context.network.wifi` fields are empty, then the user is offline. |
129130
| `os` | Object | Dictionary of information about the operating system, containing `name` and `version`. |
130131
| `page` | Object | Dictionary of information about the current page in the browser, containing `path`, `referrer`, `search`, `title` and `url`. This is automatically collected by [Analytics.js](/docs/connections/sources/catalog/libraries/website/javascript/#context--traits). |
131132
| `referrer` | Object | Dictionary of information about the way the user was referred to the website or app, containing `type`, `name`, `url`, and `link`. |

0 commit comments

Comments
 (0)