Skip to content

oker1/websocket-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Websocket chat in erlang

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

Releases

No releases published

Packages

No packages published

Languages