Describes the options that can be provided while creating the EventHubClient.
dataTransformer: A set of encode/decode methods to be used to encode an event before sending to service
and to decode the event received from the service
userAgent : A string to append to the built in user agent string that is passed as a connection property
to the service.
websocket : The WebSocket constructor used to create an AMQP connection if you choose to make the connection
over a WebSocket.
webSocketConstructorOptions : Options to pass to the Websocket constructor when you choose to make the connection
over a WebSocket.
retryOptions : The retry options for all the operations on the client/producer/consumer.
A simple usage can be { "maxRetries": 4 }.
Options to configure the retry policy for all the operations on the client.
For example, { "maxRetries": 4 } or { "maxRetries": 4, "retryDelayInMs": 30000 }.
Optional userAgent
userAgent:undefined | string
property
Value that is appended to the built in user agent string that is passed to the Event Hubs service.
Describes the options that can be provided while creating the EventHubClient.
dataTransformer
: A set ofencode
/decode
methods to be used to encode an event before sending to service and to decode the event received from the serviceuserAgent
: A string to append to the built in user agent string that is passed as a connection property to the service.websocket
: The WebSocket constructor used to create an AMQP connection if you choose to make the connection over a WebSocket.webSocketConstructorOptions
: Options to pass to the Websocket constructor when you choose to make the connection over a WebSocket.retryOptions
: The retry options for all the operations on the client/producer/consumer. A simple usage can be{ "maxRetries": 4 }
.Example usage:
{ retryOptions: { maxRetries: 4 } }
ClientOptions