20
20
-export([start/2,stop/1]).
22
27
start(_Type, _StartArgs) ->
23
28
{ok, Listener} = application:get_env(rabbitmq_web_stomp_examples, listener),
24
29
{ok, _} = rabbit_mochiweb:register_static_context(
25
30
web_stomp_examples, Listener, "web-stomp-examples", ?MODULE,
26
31
"priv", "WEB-STOMP: examples"),
32
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
30
35
rabbit_mochiweb:unregister_context(web_stomp_examples),
38
init([]) -> {ok, {{one_for_one, 3, 10}, []}}.