aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_event.lua
diff options
context:
space:
mode:
authorPaul Aurich <paul@darkrain42.org>2010-11-21 21:02:31 -0800
committerPaul Aurich <paul@darkrain42.org>2010-11-21 21:02:31 -0800
commit295773cfbcee3ac2c59d63061c2264f02a970936 (patch)
treefc90edbd36cb8450b3408130fc4754b68f57de9c /net/server_event.lua
parentf8114fe1b0e239d418e2f1d05952c97170efc351 (diff)
downloadprosody-295773cfbcee3ac2c59d63061c2264f02a970936.tar.gz
prosody-295773cfbcee3ac2c59d63061c2264f02a970936.zip
net.server_event: API parity with net.server_socket
Diffstat (limited to 'net/server_event.lua')
-rw-r--r--net/server_event.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index 1db78041..122d80fc 100644
--- a/net/server_event.lua
+++ b/net/server_event.lua
@@ -361,6 +361,10 @@ do
end
end
+ function interface_mt:socket()
+ return self.conn
+ end
+
function interface_mt:server()
return self._server or self;
end