File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/connections/sources/catalog/libraries/server/node Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -330,7 +330,8 @@ The second argument to the `Analytics` constructor is an optional dictionary of
330330``` javascript
331331var 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
You can’t perform that action at this time.
0 commit comments