aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun.erl
diff options
context:
space:
mode:
authorMichal Piotrowski <[email protected]>2018-09-28 13:43:48 +0200
committerLoïc Hoguin <[email protected]>2018-10-01 14:57:10 +0200
commit87e279322ba8dd86d6d8ab43f90a1b591ef090d1 (patch)
tree629a8ca004235c7b30fb86920ce4960ffeee6eef /src/gun.erl
parentafc6745d3f3070418204cd5ce97adb592129777a (diff)
downloadgun-87e279322ba8dd86d6d8ab43f90a1b591ef090d1.tar.gz
gun-87e279322ba8dd86d6d8ab43f90a1b591ef090d1.tar.bz2
gun-87e279322ba8dd86d6d8ab43f90a1b591ef090d1.zip
Document the protocols option for Websocket
Diffstat (limited to 'src/gun.erl')
-rw-r--r--src/gun.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gun.erl b/src/gun.erl
index 0095169..1659ee3 100644
--- a/src/gun.erl
+++ b/src/gun.erl
@@ -156,7 +156,8 @@
%% @todo keepalive
-type ws_opts() :: #{
- compress => boolean()
+ compress => boolean(),
+ protocols => [{binary(), module()}]
}.
-export_type([ws_opts/0]).