diff options
author | Wei Huang <[email protected]> | 2022-04-01 22:35:17 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2022-11-08 12:45:25 +0100 |
commit | 9591d4c2df694115c5c5ff1b159117fa3032d428 (patch) | |
tree | 98a6f4d63fc8d14c65fb97cef7048c44a7388ea1 /src | |
parent | 7507a8abbca2b7fe14ad18336d807581f6ce4f59 (diff) | |
download | gun-9591d4c2df694115c5c5ff1b159117fa3032d428.tar.gz gun-9591d4c2df694115c5c5ff1b159117fa3032d428.tar.bz2 gun-9591d4c2df694115c5c5ff1b159117fa3032d428.zip |
Include Websocket StreamRef in gun_down messages
Diffstat (limited to 'src')
-rw-r--r-- | src/gun_ws.erl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gun_ws.erl b/src/gun_ws.erl index e864351..fbd1738 100644 --- a/src/gun_ws.erl +++ b/src/gun_ws.erl @@ -350,6 +350,5 @@ ws_send([Frame|Tail], State, ReplyTo, EvHandler, EvHandlerState0) -> ws_send(Frames, State, _StreamRef, ReplyTo, EvHandler, EvHandlerState) -> ws_send(Frames, State, ReplyTo, EvHandler, EvHandlerState). -%% Websocket has no concept of streams. -down(_) -> - []. +down(#ws_state{stream_ref=StreamRef}) -> + [StreamRef]. |