WebSocket Chat

This recipe will help you to setup a basic WebSocket chat in your application.
First you need an amber project generated with Amber CLI or from scratch.
Then setup your socket file:
Then add the websocket verb in your routes file:
Finally you will require an Amber JavaScript Client to connect with your server:
You can get amber.min.js from lib/amber/assets/js/amber.min.js
To serve static files you must enable :static routes, please see pipelines.
Also see more detailed information about this in WebSockets.