1 -module(sockjs_session_sup).
3 -behaviour(supervisor).
5 -export([start_link/0, start_child/3]).
8 %% --------------------------------------------------------------------------
10 %% -spec start_link() -> ignore | {'ok', pid()} | {'error', any()}.
12 supervisor:start_link({local, ?MODULE}, ?MODULE, []).
15 {ok, {{simple_one_for_one, 10, 10},
16 [{undefined, {sockjs_session, start_link, []},
17 transient, 5000, worker, [sockjs_session]}]}}.
19 start_child(SessionId, Service, Info) ->
20 supervisor:start_child(?MODULE, [SessionId, Service, Info]).