aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-02-16 15:48:04 +0100
committerLoïc Hoguin <[email protected]>2015-02-16 15:48:04 +0100
commitdc8be8882c9aeba9f14c228d8567fba2ca7fd55d (patch)
tree3e36950f6deef587f04fb4c43b0156ab191f6a69 /doc
parent89c47d3d6edc8aafb4c9c4a5a86fb0239dee8f3a (diff)
downloadcowboy-dc8be8882c9aeba9f14c228d8567fba2ca7fd55d.tar.gz
cowboy-dc8be8882c9aeba9f14c228d8567fba2ca7fd55d.tar.bz2
cowboy-dc8be8882c9aeba9f14c228d8567fba2ca7fd55d.zip
Use cow_ws for the Websocket parsing code
Updates Cowlib to 1.1.0
Diffstat (limited to 'doc')
-rw-r--r--doc/src/manual/cowboy_websocket.ezdoc16
1 files changed, 2 insertions, 14 deletions
diff --git a/doc/src/manual/cowboy_websocket.ezdoc b/doc/src/manual/cowboy_websocket.ezdoc
index 8aac4cf..2519dba 100644
--- a/doc/src/manual/cowboy_websocket.ezdoc
+++ b/doc/src/manual/cowboy_websocket.ezdoc
@@ -22,18 +22,6 @@ Cowboy will terminate the process right after closing the
Websocket connection. This means that there is no real need to
perform any cleanup in the optional `terminate/3` callback.
-:: Types
-
-: close_code() = 1000..4999
-
-Reason for closing the connection.
-
-: frame() = close | ping | pong
- | {text | binary | close | ping | pong, iodata()}
- | {close, close_code(), iodata()}
-
-Frames that can be sent to the client.
-
:: Meta values
: websocket_compress
@@ -118,7 +106,7 @@ Types:
* InFrame = {text | binary | ping | pong, binary()}
* Req = cowboy_req:req()
* State = any()
-* OutFrame = frame()
+* OutFrame = cow_ws:frame()
Handle the data received from the Websocket connection.
@@ -145,7 +133,7 @@ Types:
* Info = any()
* Req = cowboy_req:req()
* State = any()
-* OutFrame = frame()
+* OutFrame = cow_ws:frame()
Handle the Erlang message received.