From d2a3f2cedd7c00d0933222aed9c06b3149aa4db4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?=
Date: Wed, 4 Apr 2018 13:13:37 +0200
Subject: Cowboy 2.3.0
---
docs/en/cowboy/2.1/guide/ws_handlers/index.html | 28 +++++++++++++------------
1 file changed, 15 insertions(+), 13 deletions(-)
(limited to 'docs/en/cowboy/2.1/guide/ws_handlers')
diff --git a/docs/en/cowboy/2.1/guide/ws_handlers/index.html b/docs/en/cowboy/2.1/guide/ws_handlers/index.html
index 5fe6f554..e49d5606 100644
--- a/docs/en/cowboy/2.1/guide/ws_handlers/index.html
+++ b/docs/en/cowboy/2.1/guide/ws_handlers/index.html
@@ -7,7 +7,7 @@
-
+
Nine Nines: Websocket handlers
@@ -83,7 +83,7 @@ close the connection.
To establish a Websocket connection, you must switch to the
cowboy_websocket
module:
-
@@ -118,7 +118,7 @@ Websocket, and provide the header:
This selection must be done in init/2
. An example usage could
be:
-
@@ -155,7 +155,7 @@ from the connection process.
or be tied to the current pid, will not work as intended.
The optional
websocket_init/1
can be used instead:
-
@@ -166,7 +166,7 @@ http://www.gnu.org/software/src-highlite -->
means that we can send frames to the client right after
the upgrade:
-
@@ -184,7 +184,7 @@ send frames back to the client or stop the connection.
The following snippet echoes back any text frame received and
ignores all others:
-
@@ -207,7 +207,7 @@ send frames to the client or stop the connection.
The following snippet forwards log messages to the client
and ignores all others:
-
@@ -224,7 +224,7 @@ http://www.gnu.org/software/src-highlite -->
send zero, one or many frames to the client.
To send nothing, just return an ok tuple:
-
@@ -232,7 +232,7 @@ http://www.gnu.org/software/src-highlite -->
{ok, State}.
To send one frame, return a reply tuple with the frame to send:
-
@@ -243,7 +243,7 @@ or close frames.
To send many frames at once, return a reply tuple with the
list of frames to send:
-
@@ -276,7 +276,7 @@ than needed.
for the connection. For example, this would make Cowboy
close connections idle for more than 30 seconds:
-
@@ -294,7 +294,7 @@ http://www.gnu.org/software/src-highlite -->
after the callback returns.
Simply add an hibernate
field to the ok or reply tuples:
-
@@ -320,7 +320,7 @@ for the more busy connections.
Cowboy to stop it or by sending a close frame.
To tell Cowboy to close the connection, use a stop tuple:
-
@@ -388,6 +388,8 @@ close frame will not be sent.
+
2.3
+
2.2
2.1
--
cgit v1.2.3