Constructor
new EnterpriseEventStream(client, optionsopt)
Parameters:
Name | Type | Attributes | Description | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
client |
BoxClient | The client to use to get events | ||||||||||||||||||||||||||||||||||||
options |
Object |
<optional> |
Options
Properties
|
- Source:
Extends
- Readable
Methods
getStreamPosition() → (nullable) {number}
- Source:
Returns:
- Returns null if no events have been fetched from Box yet.
- Type
- number
getStreamPosition() → (nullable) {number}
- Source:
Returns:
- Returns null if no events have been fetched from Box yet.
- Type
- number
getStreamState() → {Object}
Get the stream state.
- Source:
Returns:
- The stream state
- Type
- Object
getStreamState() → {Object}
Get the stream state.
- Source:
Returns:
- The stream state
- Type
- Object
setStreamState(state) → {void}
Set the stream state.
Parameters:
Name | Type | Description |
---|---|---|
state |
Object | The stream state |
- Source:
Returns:
- Type
- void
setStreamState(state) → {void}
Set the stream state.
Parameters:
Name | Type | Description |
---|---|---|
state |
Object | The stream state |
- Source:
Returns:
- Type
- void