diff options
author | Loïc Hoguin <[email protected]> | 2016-09-14 18:52:59 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-09-14 18:52:59 +0200 |
commit | 348cfe494318d0c12072fd75ff451c3b40168965 (patch) | |
tree | dc0186d61b759b248a774cd364d8cb4e073a0c41 /docs/en/cowboy/2.0/guide/sub_protocols.asciidoc | |
parent | a0db20721bee71e7c0558a83d94ac0c8927b3939 (diff) | |
download | ninenines.eu-348cfe494318d0c12072fd75ff451c3b40168965.tar.gz ninenines.eu-348cfe494318d0c12072fd75ff451c3b40168965.tar.bz2 ninenines.eu-348cfe494318d0c12072fd75ff451c3b40168965.zip |
Update documentation
Diffstat (limited to 'docs/en/cowboy/2.0/guide/sub_protocols.asciidoc')
-rw-r--r-- | docs/en/cowboy/2.0/guide/sub_protocols.asciidoc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/en/cowboy/2.0/guide/sub_protocols.asciidoc b/docs/en/cowboy/2.0/guide/sub_protocols.asciidoc index 5332eec4..2ab96bcf 100644 --- a/docs/en/cowboy/2.0/guide/sub_protocols.asciidoc +++ b/docs/en/cowboy/2.0/guide/sub_protocols.asciidoc @@ -17,7 +17,7 @@ is handled by the sub protocol. [source,erlang] ---- init(Req, State) -> - {cowboy_websocket, Req, State}. + {cowboy_websocket, Req, State}. ---- The return value may also have a `Timeout` value and/or the @@ -34,7 +34,7 @@ hibernation: [source,erlang] ---- init(Req, State) -> - {my_protocol, Req, State, 5000, hibernate}. + {my_protocol, Req, State, 5000, hibernate}. ---- If a sub protocol does not make use of these options, it should @@ -59,7 +59,7 @@ timeout and hibernate values. [source,erlang] ---- upgrade(Req, Env, Handler, HandlerOpts, Timeout, Hibernate) -> - %% Sub protocol code here. + %% Sub protocol code here. ---- This callback is expected to behave like a middleware and to |