View Source BitfinexClient.Websocket.Trades (bitfinex_client v0.1.0)
Handling the Bitfinex trades websocket endpoint
Link to this section Summary
Functions
Connection handling, part of the WebSockex spec
When data is being received by Bitfinex, it is being dispatched to BitfinexClient.Websocket.Trades.Handler, or being logged to the console if of an unknown format
Starts a PubSub process linked to the current process
Subscribe to a topic, will send messages to the pid
Called by Websockex when its process gets terminated, most probably by an error
Link to this section Functions
Connection handling, part of the WebSockex spec
When data is being received by Bitfinex, it is being dispatched to BitfinexClient.Websocket.Trades.Handler, or being logged to the console if of an unknown format
Starts a PubSub process linked to the current process
examples
Examples
iex> BitfinexClient.Websocket.Trades.start_link()
...> |> elem(0)
:ok
@spec subscribe(pid()) :: :ok
Subscribe to a topic, will send messages to the pid
examples
Examples
iex> BitfinexClient.Websocket.Trades.subscribe(self())
:ok
Called by Websockex when its process gets terminated, most probably by an error