Phoenix.React.Server (Phoenix.React v0.3.0)

View Source

The React Render Server

Start runtime server set in Application.get_env(:phoenix_react_server, Phoenix.React)

Summary

Functions

Returns a specification to start this module under a supervisor.

Return the configuration of the React Render Server from Application.get_env(:phoenix_react_server, Phoenix.React)

Types

millisecond()

@type millisecond() :: integer()

second()

@type second() :: integer()

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

config()

@spec config() :: [
  {:cache_ttl, second()}
  | {:component_base, binary()}
  | {:render_timeout, millisecond()}
  | {:runtime, module()},
  ...
]

Return the configuration of the React Render Server from Application.get_env(:phoenix_react_server, Phoenix.React)

start_link(init_arg)