Dust.Connection (dustlayer v0.1.1)

Copy Markdown View Source

WebSocket client that connects to the Dust server via Phoenix Channels.

Uses Slipstream to manage the connection lifecycle, heartbeats, reconnection, and ref tracking. Joins one channel per store using topic "store:{store_name}" and forwards server events to SyncEngines.

Summary

Functions

Returns true if the named Dust.Connection process is currently connected to the Dust server. false during initial connect, reconnect backoff, or if no connection process exists by that name.

Functions

child_spec(init_arg)

connected?(name_or_pid \\ __MODULE__)

Returns true if the named Dust.Connection process is currently connected to the Dust server. false during initial connect, reconnect backoff, or if no connection process exists by that name.

Defaults to looking up Dust.Connection. Pass an explicit name (or pid) for facade-instance setups where the connection has a different name.

info(pid)

start_link(opts)