Backend ported from https://martinsikora.com/nodejs-and-websocket-simple-chat-tutorial
wget https://github.com/rebar/rebar/wiki/rebar
chmod +x rebar
.rebar get-deps && ./rebar compile
erl -pa ebin -pa deps/*/ebin -boot start_sasl -s cset -sname cset1 -cset port 1337
erl -pa ebin -pa deps/*/ebin -boot start_sasl -s cset -sname cset2 -cset port 1338 -cset connect "'cset1@<your-hostname>'"
open https://localhost:1337 open https://localhost:1338
TODOS:
- use supervisors
- cleanup server module
- sync history when node comes back