Software /
code /
verse
Comparison
init.lua @ 281:1669dd08032a
verse: Remove some, erm, debug logging
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 30 Mar 2012 03:57:03 +0100 |
parent | 280:981c8867f1fb |
child | 322:819b35b8fcf6 |
comparison
equal
deleted
inserted
replaced
280:981c8867f1fb | 281:1669dd08032a |
---|---|
212 function new_listener(stream) | 212 function new_listener(stream) |
213 local conn_listener = {}; | 213 local conn_listener = {}; |
214 | 214 |
215 function conn_listener.onconnect(conn) | 215 function conn_listener.onconnect(conn) |
216 if stream.server then | 216 if stream.server then |
217 stream:debug("foo"); | |
218 local client = verse.new(); | 217 local client = verse.new(); |
219 conn:setlistener(new_listener(client)); | 218 conn:setlistener(new_listener(client)); |
220 client:set_conn(conn); | 219 client:set_conn(conn); |
221 stream:event("connected", { client = client }); | 220 stream:event("connected", { client = client }); |
222 else | 221 else |