| mx_sync | R Documentation |
Calls /sync once and returns immediately. For streaming behaviour,
the caller writes its own loop, passing the previous batch's
next_batch token as since.
mx_sync(session, since = NULL, timeout = 0L, filter = NULL)
session |
An "mx_session" object. |
since |
Character or NULL. Sync token from a prior sync. |
timeout |
Integer. Long-poll timeout in milliseconds (0 returns immediately). |
filter |
Character or NULL. Filter ID or inline JSON filter. |
The parsed sync response, including next_batch.
## Not run:
batch <- mx_sync(s)
next_batch <- batch$next_batch
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.