0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-16 05:00:24 +00:00

Convert the websocket example to a release

This commit is contained in:
Loïc Hoguin 2013-09-09 16:21:53 +02:00
parent 6a90d00cee
commit 834056402a
9 changed files with 35 additions and 62 deletions

View file

@ -1,17 +1,19 @@
Cowboy websocket
================
Websocket example
=================
To compile this example you need rebar in your PATH.
To try this example, you need GNU `make`, `git` and
[relx](https://github.com/erlware/relx) in your PATH.
Type the following command:
```
$ rebar get-deps compile
To build the example, run the following command:
``` bash
$ make
```
You can then start the Erlang node with the following command:
```
./start.sh
To start the release in the foreground:
``` bash
$ ./_rel/bin/websocket_example console
```
Then point your browser to the indicated URL to open a websocket client.
Not all browsers support websockets. It was tested with Chromium.
Then point your browser at [http://localhost:8080](http://localhost:8080).