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. --- src/gun_ws.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gun_ws.erl') diff --git a/src/gun_ws.erl b/src/gun_ws.erl index a1fdfae..73c0fd7 100644 --- a/src/gun_ws.erl +++ b/src/gun_ws.erl @@ -28,7 +28,6 @@ -export([closing/4]). -export([close/4]). -export([keepalive/3]). --export([ws_send/5]). -export([ws_send/6]). -export([down/1]). @@ -343,6 +342,7 @@ ws_send([Frame|Tail], State, ReplyTo, EvHandler, EvHandlerState0) -> Other end. +%% @todo We should probably check the _StreamRef value. ws_send(Frames, State, _StreamRef, ReplyTo, EvHandler, EvHandlerState) -> ws_send(Frames, State, ReplyTo, EvHandler, EvHandlerState). -- cgit v1.2.3