Method: Akasha::Storage::HttpEventStore#initialize
- Defined in:
- lib/akasha/storage/http_event_store.rb
#initialize(host: 'localhost', port: 2113, username: nil, password: nil, max_retries: 0) ⇒ HttpEventStore
Creates a new event store client, connecting to the specified ‘host` and `port` using an optional `username` and `password`. Use the `max_retries` option to choose how many times to retry in case of network failures.
11 12 13 14 |
# File 'lib/akasha/storage/http_event_store.rb', line 11 def initialize(host: 'localhost', port: 2113, username: nil, password: nil, max_retries: 0) @client = Client.new(host: host, port: port, username: username, password: password) @max_retries = max_retries end |