aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/README.md5
-rw-r--r--examples/websocket/README.md4
-rw-r--r--examples/websocket/src/websocket_app.erl2
3 files changed, 5 insertions, 6 deletions
diff --git a/examples/README.md b/examples/README.md
index fa197c7..3ba7c5b 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -19,7 +19,6 @@ Cowboy Examples
* [echo_post](./examples/echo_post):
parse and echo a POST parameter
-
* [hello_world](./examples/hello_world):
simplest example application
@@ -29,5 +28,5 @@ Cowboy Examples
* [static](./examples/static):
an example file server
- * [static](./examples/websocket):
- websocket example \ No newline at end of file
+ * [websocket](./examples/websocket):
+ websocket example
diff --git a/examples/websocket/README.md b/examples/websocket/README.md
index 14f6f74..f3b4cbd 100644
--- a/examples/websocket/README.md
+++ b/examples/websocket/README.md
@@ -13,5 +13,5 @@ You can then start the Erlang node with the following command:
./start.sh
```
-Then point your browser to the indicated URL to open a websocket client.
-Not all browsers suport websockets. It was tested with Chromium.
+Then point your browser to the indicated URL to open a websocket client.
+Not all browsers support websockets. It was tested with Chromium.
diff --git a/examples/websocket/src/websocket_app.erl b/examples/websocket/src/websocket_app.erl
index 5dc7017..93598d0 100644
--- a/examples/websocket/src/websocket_app.erl
+++ b/examples/websocket/src/websocket_app.erl
@@ -16,7 +16,7 @@ start(_Type, _Args) ->
{"/websocket", ws_handler, []}
]}
]),
- {ok, _} = cowboy:start_http(http, 100, [{port, 8080}],
+ {ok, _} = cowboy:start_http(http, 100, [{port, 8080}],
[{env, [{dispatch, Dispatch}]}]),
websocket_sup:start_link().