From ddd03ed95098d6664ed9b623d8b9b830f7e28815 Mon Sep 17 00:00:00 2001 From: niku Date: Sat, 14 Apr 2018 01:16:29 +0900 Subject: Fix the document about `ws_upgrade` --- doc/src/manual/gun.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/src/manual/gun.asciidoc b/doc/src/manual/gun.asciidoc index 02d0b86..3332631 100644 --- a/doc/src/manual/gun.asciidoc +++ b/doc/src/manual/gun.asciidoc @@ -693,13 +693,13 @@ HTTP/2 streams can however be cancelled at any time. Alias of `gun:ws_upgrade/3`. -=== ws_upgrade(ConnPid, Path, Headers) -> ok +=== ws_upgrade(ConnPid, Path, Headers) -> ws_upgrade(ConnPid, Path, Headers, #{}) Similar to `gun:ws_upgrade/4`, except `WsOpts` is taken from the options given in the `gun:open/{2,3}` call when opening the connection. -=== ws_upgrade(ConnPid, Path, Headers, WsOpts) -> ok +=== ws_upgrade(ConnPid, Path, Headers, WsOpts) -> StreamRef ConnPid = pid():: The pid of the Gun connection process. Path = iodata():: Path to the resource. -- cgit v1.2.3