diff options
author | Loïc Hoguin <[email protected]> | 2020-11-12 14:00:41 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-11-12 14:00:41 +0100 |
commit | 4a58077d5162325fa5723690e58e7364adbcb18c (patch) | |
tree | 6f088a7a9b9d1f6b0eacdeb98de1eb5b8032b647 /test/ws_autobahn_SUITE.erl | |
parent | 1ebad8acf803eb797a6c61f6522ebc3b79f104a1 (diff) | |
download | gun-4a58077d5162325fa5723690e58e7364adbcb18c.tar.gz gun-4a58077d5162325fa5723690e58e7364adbcb18c.tar.bz2 gun-4a58077d5162325fa5723690e58e7364adbcb18c.zip |
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.
Diffstat (limited to 'test/ws_autobahn_SUITE.erl')
-rw-r--r-- | test/ws_autobahn_SUITE.erl | 6 |
1 files changed, 3 insertions, 3 deletions
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); |