讀取已收到的事件
mc_events_pollRetrieve Minecraft Education Edition events using a cursor for continuous pagination, monitor for dropped events to adjust polling frequency, and optionally filter by event name.
Instructions
取出游標之後的事件。第一次用 afterCursor=0,之後帶回上次回傳的 nextCursor 就能連續讀。dropped 大於 0 代表緩衝環繞、有事件永遠讀不到了,該提高輪詢頻率。無副作用。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| eventName | No | 只取這一種事件 | |
| afterCursor | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| events | Yes | ||
| dropped | Yes | ||
| nextCursor | Yes |