Skip to content

Commit 6d6ba91

Browse files
author
markzegarelli
authored
Merge pull request #1933 from North-Two-Five/add-node-option-enable
Add 'enable' option to node docs
2 parents 1429550 + 3320418 commit 6d6ba91

File tree

1 file changed

+6
-1
lines changed
  • src/connections/sources/catalog/libraries/server/node

1 file changed

+6
-1
lines changed

src/connections/sources/catalog/libraries/server/node/index.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,8 @@ The second argument to the `Analytics` constructor is an optional dictionary of
330330
```javascript
331331
var analytics = new Analytics('YOUR_WRITE_KEY', {
332332
flushAt: 20,
333-
flushInterval: 10000
333+
flushInterval: 10000,
334+
enable: false
334335
});
335336
```
336337

@@ -343,6 +344,10 @@ var analytics = new Analytics('YOUR_WRITE_KEY', {
343344
<td>`flushInterval` _Number_</td>
344345
<td>The number of milliseconds to wait before flushing the queue automatically.</td>
345346
</tr>
347+
<tr>
348+
<td>`enable` _Boolean_</td>
349+
<td>Enable (default) or disable flush. Useful when writing tests and you do not want to send data to Segment Servers.</td>
350+
</tr>
346351
</table>
347352

348353

0 commit comments

Comments
 (0)