From c807880f7ac73f813b2660ea81a00f7712a4e793 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?=
Date: Mon, 29 Aug 2016 12:39:49 +0200
Subject: Add old mailing list archives
---
docs/en/cowboy/2.0/guide/sub_protocols/index.html | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
(limited to 'docs/en/cowboy/2.0/guide/sub_protocols')
diff --git a/docs/en/cowboy/2.0/guide/sub_protocols/index.html b/docs/en/cowboy/2.0/guide/sub_protocols/index.html
index c75da6a4..34f7db9b 100644
--- a/docs/en/cowboy/2.0/guide/sub_protocols/index.html
+++ b/docs/en/cowboy/2.0/guide/sub_protocols/index.html
@@ -85,8 +85,8 @@ is handled by the sub protocol.
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
-init(Req, _Opts) ->
- {cowboy_websocket, Req, #state{}}.
+init(Req, State) ->
+ {cowboy_websocket, Req, State}.
The return value may also have a Timeout
value and/or the
atom hibernate
. These options are useful for long living
connections. When they are not provided, the timeout value
@@ -99,8 +99,8 @@ hibernation:
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
-init(Req, _Opts) ->
- {my_protocol, Req, #state{}, 5000, hibernate}.
+init(Req, State) ->
+ {my_protocol, Req, State, 5000, hibernate}.
If a sub protocol does not make use of these options, it should
crash if it receives anything other than the default values.
--
cgit v1.2.3