Index: sdk/lib/io/websocket_impl.dart |
diff --git a/sdk/lib/io/websocket_impl.dart b/sdk/lib/io/websocket_impl.dart |
index 9693873edb56992015caf0b2ea837bd04f53e1cf..cc68544e536233a5e43d63a699e01d4d58ce5b4e 100644 |
--- a/sdk/lib/io/websocket_impl.dart |
+++ b/sdk/lib/io/websocket_impl.dart |
@@ -888,7 +888,7 @@ class _WebSocketImpl extends Stream with _ServiceObject implements WebSocket { |
if (_readyState == WebSocket.OPEN) { |
_readyState = WebSocket.CLOSING; |
if (!_isReservedStatusCode(transformer.closeCode)) { |
- _close(transformer.closeCode); |
+ _close(transformer.closeCode, transformer.closeReason); |
} else { |
_close(); |
} |