tool that facilitates connection between bullet and web-application
JavaScript Erlang
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples/clock
priv
src
LICENSE
Makefile
README.md
rebar.config

README.md

#Introduction

jacket is a library that utilizes bullet library in order to abstract and facilitate communication between Erlang and Javascript applications.

Such a connection allows Erlang programmers to use Erlang data types in their web applications and have a sense that a web client is one the processes in Erlang runtime. This is because an Erlang-side behaviour is implemented in a way similiar to the gen_server's behaviour implementation (including state persistence between callbacks calls) and no further data conversion (like to/from JSON) is necessary.

#Examples

See examples directory for usage examples.

Please type

make
./start.es

to start the example. Then visit http://localhost:8080.

##clock

This example uses 3 different transports in a Javascript-side (WebSockets, SSE and XHR longpolling) and shows how handler state is kept between events in all 3 cases.