Module: EventStore::HTTPClient

Defined in:
lib/event_store_http_client/writer.rb,
lib/event_store_http_client/handler.rb,
lib/event_store_http_client/settings.rb,
lib/event_store_http_client/events/read.rb,
lib/event_store_http_client/events/write.rb,
lib/event_store_http_client/client/builder.rb,
lib/event_store_http_client/projection/get_state.rb,
lib/event_store_http_client/subscriptions/subscribe.rb

Defined Under Namespace

Modules: Client, Events, Handler, Projection, Subscriptions, Writer Classes: Settings

Class Method Summary collapse

Class Method Details

.subscribe(starting_point, stream, handler) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/event_store_http_client/subscriptions/subscribe.rb', line 4

def self.subscribe(starting_point, stream, handler)
  Subscriptions::Subscribe.!(
    starting_point: starting_point,
    stream: stream,
    handler: handler
  )
end