0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 20:50:24 +00:00

Remove cowboy_sub_protocol from the documentation

This will be reintroduced in a future release once the
interface stabilizes. For the time being it will be an
internal module only.
This commit is contained in:
Loïc Hoguin 2017-07-20 18:28:06 +02:00
parent e4cab480dc
commit 3099fc1d9f
No known key found for this signature in database
GPG key ID: 71366FF21851DF03
5 changed files with 0 additions and 115 deletions

View file

@ -68,17 +68,6 @@ init(Req, State) ->
{cowboy_websocket, Req, State}.
----
You can also switch to your own custom handler type:
[source,erlang]
----
init(Req, State) ->
{my_handler_type, Req, State}.
----
How to implement a custom handler type is described in the
xref:sub_protocols[Sub protocols] chapter.
=== Cleaning up
All handler types provide the optional `terminate/3` callback.