Building Web Applications With Erlang Drmichalore -
websocket_handle(text, Msg, State) -> reply, text, <<"Echo: ", Msg/binary>>, State.
to create robust applications that can recover from errors automatically. Open Telecom Platform (OTP) Building Web Applications With Erlang Drmichalore
In src/my_web_app_sup.erl , add a child: Building Web Applications With Erlang Drmichalore
Edit rebar.config to add Cowboy and a JSON library (like jsx ): Building Web Applications With Erlang Drmichalore
rebar3 new app my_web_app cd my_web_app