ItemBuffer

ItemBuffer

Item buffer for Long polling or Joint

Constructor

new ItemBuffer()

Source:

Members

data

Source:

Methods

read() → {Promise}

Source:
Returns:
Type:
Promise
  • A promise that resolves an item when the item is written

write(item) → {Promise}

Source:
Parameters:
Name Type Description
item object

written item

Returns:
Type:
Promise
  • a promise that resolves when the item has been written