generated from multiversx/mx-chain-ws-connector-template-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.toml
20 lines (20 loc) · 1.17 KB
/
config.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[web_socket]
# IP with port used to recieve data via ws. Should be compatible with the one from node. See [HostDriverConfig].URL
# from https://github.com/multiversx/mx-chain-go/blob/master/cmd/node/config/external.toml.
url = "localhost:22111"
# Possible values: json, gogo protobuf. Should be compatible with [HostDriverConfig].MarshallerType
marshaller_type = "gogo protobuf"
# This flag describes the mode to start the WebSocket connector. Can be "client" or "server"
mode = "client"
# Retry duration (receive/send data/acknowledge) in seconds
retry_duration = 5
# This flag specifies if we should send an acknowledge signal upon recieving data
with_acknowledge = true
# The duration in seconds to wait for an acknowledgement message
acknowledge_timeout_in_sec = 5
# Signals if in case of data payload processing error, we should send the ack signal or not. If you want to block
# incoming data in case of a local error, this should be set to true.
blocking_ack_on_error = true
# This flag specifies if we should drop messages if there is no connection to the host
drop_messages_if_no_connection = false
version = 1