From 1e09dc37cf02a389db099837a9863e86435c5f0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 7 May 2018 14:18:37 +0200 Subject: Make sure ws_upgrade/3 and /4 are considered different --- doc/src/manual/gun.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/src/manual/gun.asciidoc b/doc/src/manual/gun.asciidoc index 3332631..0c6dd08 100644 --- a/doc/src/manual/gun.asciidoc +++ b/doc/src/manual/gun.asciidoc @@ -689,11 +689,11 @@ the stream and stop relaying messages. HTTP/2 streams can however be cancelled at any time. -=== ws_upgrade(ConnPid, Path) -> ws_upgrade(ConnPid, Path, [], #{}) +=== ws_upgrade(ConnPid, Path) -> ws_upgrade(ConnPid, Path, []) Alias of `gun:ws_upgrade/3`. -=== ws_upgrade(ConnPid, Path, Headers) -> ws_upgrade(ConnPid, Path, Headers, #{}) +=== ws_upgrade(ConnPid, Path, Headers) -> StreamRef Similar to `gun:ws_upgrade/4`, except `WsOpts` is taken from the options given in the `gun:open/{2,3}` call when opening -- cgit v1.2.3