HTTP Event Client v0.1.14 HTTPEventClient View Source

Emits events to an HTTP event server. Events can get sent either async or inline. Events are sent over the default http method POST. This can be configured with the default_http_method config option. Events are sent to the url provided with the event_server_url option. You may also set the force_ssl option to force events to be sent over SSL. Only events with numbers or letters are allowed.

Simple event

HTTPEventClient.emit(“something happend”)

Event with data

HTTPEventClient.emit(“something happend”, %{username: “john doe”})

Async event

HTTPEventClient.emit_async(“something happend”)

Link to this section Summary

Link to this section Functions

Sends events and awaits a response.

Link to this function emit(event, data, method \\ nil) View Source

Sends events async.

Link to this function emit_async(event, data, method \\ nil) View Source