verse: Fire "status" event for connection status changes (notably SSL handshake complete)

Tue, 11 May 2010 22:40:13 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Tue, 11 May 2010 22:40:13 +0100
changeset 60
1f47ddab3499
parent 59
829a0a495dd1
child 61
6adddfdf974b

verse: Fire "status" event for connection status changes (notably SSL handshake complete)

init.lua file | annotate | diff | comparison | revisions
--- a/init.lua	Tue May 11 22:09:44 2010 +0100
+++ b/init.lua	Tue May 11 22:40:13 2010 +0100
@@ -147,6 +147,10 @@
 		stream:event("drained");
 	end
 	
+	function conn_listener.onstatus(conn, new_status)
+		stream:event("status", new_status);
+	end
+	
 	return conn_listener;
 end
 

mercurial