The start payload is sent after an application connects to a WebSocket, to start
delivery of events over that connection.
The start command can refer to a subscription by name in order to reliably receive all matching
events for that subscription, including those that were emitted when the application
was disconnected.
Alternatively the start command can request "ephemeral": true in order to dynamically create a new
subscription that lasts only for the duration that the connection is active.
Regular expression to apply to the topic of the event, to subscribe to a subset of topics. Note for messages sent with multiple topics, a separate event is emitted for each topic
string
topics
Deprecated: Please use ‘topic’ instead
string
tag
Deprecated: Please use ‘message.tag’ instead
string
group
Deprecated: Please use ‘message.group’ instead
string
author
Deprecated: Please use ‘message.author’ instead
string
MessageFilter
Field Name
Description
Type
tag
Regular expression to apply to the message ‘header.tag’ field
string
group
Regular expression to apply to the message ‘header.group’ field
string
author
Regular expression to apply to the message ‘header.author’ field
string
TransactionFilter
Field Name
Description
Type
type
Regular expression to apply to the transaction ‘type’ field
string
BlockchainEventFilter
Field Name
Description
Type
name
Regular expression to apply to the blockchain event ‘name’ field, which is the name of the event in the underlying blockchain smart contract
string
listener
Regular expression to apply to the blockchain event ‘listener’ field, which is the UUID of the event listener. So you can restrict your subscription to certain blockchain listeners. Alternatively to avoid your application need to know listener UUIDs you can set the ‘topic’ field of blockchain event listeners, and use a topic filter on your subscriptions
string
SubscriptionOptions
Field Name
Description
Type
firstEvent
Whether your appplication would like to receive events from the ‘oldest’ event emitted by your FireFly node (from the beginning of time), or the ‘newest’ event (from now), or a specific event sequence. Default is ‘newest’
SubOptsFirstEvent
readAhead
The number of events to stream ahead to your application, while waiting for confirmation of consumption of those events. At least once delivery semantics are used in FireFly, so if your application crashes/reconnects this is the maximum number of events you would expect to be redelivered after it restarts
uint16
withData
Whether message events delivered over the subscription, should be packaged with the full data of those messages in-line as part of the event JSON payload. Or if the application should make separate REST calls to download that data. May not be supported on some transports.
bool
fastack
Webhooks only: When true the event will be acknowledged before the webhook is invoked, allowing parallel invocations
bool
url
Webhooks only: HTTP url to invoke. Can be relative if a base URL is set in the webhook plugin config
string
method
Webhooks only: HTTP method to invoke. Default=POST
string
json
Webhooks only: Whether to assume the response body is JSON, regardless of the returned Content-Type
bool
reply
Webhooks only: Whether to automatically send a reply event, using the body returned by the webhook
bool
replytag
Webhooks only: The tag to set on the reply message
string
replytx
Webhooks only: The transaction type to set on the reply message
string
headers
Webhooks only: Static headers to set on the webhook request
``
query
Webhooks only: Static query params to set on the webhook request
``
input
Webhooks only: A set of options to extract data from the first JSON input data in the incoming message. Only applies if withData=true