From 4a58077d5162325fa5723690e58e7364adbcb18c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 12 Nov 2020 14:00:41 +0100 Subject: Replace gun:ws_send/2 with gun:ws_send/3 Switching from /2 to /3 should be easy enough. Also update the documentation about HTTP/2 Websocket support. --- test/ws_autobahn_SUITE.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/ws_autobahn_SUITE.erl') diff --git a/test/ws_autobahn_SUITE.erl b/test/ws_autobahn_SUITE.erl index 0caf108..69894d7 100644 --- a/test/ws_autobahn_SUITE.erl +++ b/test/ws_autobahn_SUITE.erl @@ -115,13 +115,13 @@ run_cases(N, Total) -> loop(Pid, MRef, StreamRef) -> receive {gun_ws, Pid, StreamRef, close} -> - gun:ws_send(Pid, close), + gun:ws_send(Pid, StreamRef, close), loop(Pid, MRef, StreamRef); {gun_ws, Pid, StreamRef, {close, Code, _}} -> - gun:ws_send(Pid, {close, Code, <<>>}), + gun:ws_send(Pid, StreamRef, {close, Code, <<>>}), loop(Pid, MRef, StreamRef); {gun_ws, Pid, StreamRef, Frame} -> - gun:ws_send(Pid, Frame), + gun:ws_send(Pid, StreamRef, Frame), loop(Pid, MRef, StreamRef); {gun_down, Pid, ws, _, _} -> close(Pid, MRef); -- cgit v1.2.3