HTTP server with static file serving and Core system websocket API.
The webserver used in thes project is Cowboy.
Before starting, the signalbroker must be running.
iex -S mix
Point your browser to http://you_envoy_machine_ip:8080/. Once your web client is started click the red red field in the status bar at the bottom. Configure it by setting your Envoy ip, http://[your_envoy_server]:8081
in order to get connection working with signal_server you need envoy. Check readme on how to get started.
To access the Websocket client UI point your web browser to [http://localhost:8080/websocket_demo/web_car.html).
The controlls being displayed are hardcoded in a javascript file service_client/priv/static_files/js/web_car.js
.
The API is now documentet at this point.
For a working sample of how to use the code go to priv/websocket_demo/js/web_car.js
.
More importantly, look at the Websocket section.