diff --git a/daphne/ws_protocol.py b/daphne/ws_protocol.py index 3428d45..e42af82 100755 --- a/daphne/ws_protocol.py +++ b/daphne/ws_protocol.py @@ -165,6 +165,7 @@ class WebSocketProtocol(WebSocketServerProtocol): if not self.muted: self.channel_layer.send("websocket.disconnect", { "reply_channel": self.reply_channel, + "code": code, "path": self.unquote(self.path), "order": self.packets_received + 1, })