Polymarket.WebSocket.SocketSupervisor (Polymarket v0.1.0)

Copy Markdown View Source

Dynamic supervisor for all websocket connections to polymarket.

A single websocket can only hold so many asset ids, so sharding is required to make sure we can subscribe to more assets than a single connection allows.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

add_connection()

@spec add_connection() :: DynamicSupervisor.on_start_child()

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(init_arg)

@spec start_link(term()) :: Supervisor.on_start()