Debian Codegraph @

examples/websocket/src/websocket_sup.erl

raw
1 %% Feel free to use, reuse and abuse the code in this file.
2
3 %% @private
4 -module(websocket_sup).
5 -behaviour(supervisor).
6
7 %% API.
8 -export([start_link/0]).
9
10 %% supervisor.
11 -export([init/1]).
12
13 %% API.
14
15 -spec start_link() -> {ok, pid()}.
16 start_link() ->
17 supervisor:start_link({local, ?MODULE}, ?MODULE, []).
18
19 %% supervisor.
20
21 init([]) ->
22 Procs = [],
23 {ok, {{one_for_one, 10, 10}, Procs}}.