Methods
createConnection(settings, endPointOrGossipSeeds, connectionNameopt) → {EventStoreNodeConnection}
Create an EventStore connection
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
settings |
object | ||
endPointOrGossipSeeds |
string | object | array | ||
connectionName |
string |
<optional> |
- Source:
Returns:
createEventData(eventId, type, isJson, data, metadataopt) → {EventData}
Create an EventData object from event/metadata buffer(s)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
eventId |
string | Event UUID | |
type |
string | Event type | |
isJson |
boolean | is buffer(s) content json | |
data |
Buffer | Data buffer | |
metadata |
Buffer |
<optional> |
Metadata buffer |
Returns:
- Type
- EventData
createJsonEventData(eventId, event, metadataopt, typeopt) → {EventData}
Create an EventData object from JavaScript event/metadata that will be serialized as json
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
eventId |
string | Event UUID | |
event |
object | Event object | |
metadata |
object |
<optional> |
Event metadata |
type |
string |
<optional> |
Event type |
Returns:
- Type
- EventData