Polymarket.WebSocket.MessageHandler (Polymarket v0.1.0)

Copy Markdown View Source

Pure functions to handle messages coming from the Polymarket websocket.

Summary

Functions

handle_message(message, state)

@spec handle_message(map(), Polymarket.WebSocket.t()) ::
  {:reply, {:text, String.t()}, Polymarket.WebSocket.t()}
  | {:noreply, Polymarket.WebSocket.t()}