LiveReactNative.MobileSupervisor (live_react_native v0.0.3)

View Source

Supervisor for mobile-native Phoenix Channel components.

This supervisor manages the PubSub process used for mobile channel communication (server-driven updates and broadcasts). It should be added to the consuming Phoenix application's supervision tree.

Usage

In your Phoenix application's supervision tree:

children = [
  # ... other children
  LiveReactNative.MobileSupervisor,
  # ... rest of children
]

Components

  • PubSub: Handles communication between MobileChannel processes

Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for Supervisor.init/1.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

init(opts)

Callback implementation for Supervisor.init/1.

start_link(opts)