Diff

init.lua @ 60:1f47ddab3499

verse: Fire "status" event for connection status changes (notably SSL handshake complete)
author Matthew Wild <mwild1@gmail.com>
date Tue, 11 May 2010 22:40:13 +0100
parent 59:829a0a495dd1
child 64:a28540d4117a
line wrap: on
line diff
--- 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