diff --git a/bin/ugrid.js b/bin/ugrid.js
index <HASH>..<HASH> 100755
--- a/bin/ugrid.js
+++ b/bin/ugrid.js
@@ -135,8 +135,11 @@ if (wsport) {
 		sock.ws = true;
 		handleConnect(sock);
 		ws.on('close', function () {
-			console.log('## connection end');
-			if (sock.client) sock.client.sock = null;
+			console.log('## connection closed');
+			if (sock.client) {
+				pubmon({event: 'disconnect', uuid: sock.client.uuid});
+				sock.client.sock = null;
+			}
 			if (sock.crossIndex) delete crossbar[sock.crossIndex];
 		});
 	});
ugrid.js: fix a bug where websocket close was not monitored


Former-commit-id: <I>a4f<I>d<I>df<I>a0ff3e3b<I>b<I>d4b7d<I>