Comparison

plugins/mod_bosh.lua @ 1869:7456bb2a3458

mod_bosh: Update to use new httpserver.new_from_config syntax
author Matthew Wild <mwild1@gmail.com>
date Sat, 03 Oct 2009 00:56:45 +0100
parent 1865:388b125b784a
child 2077:e33658f6052c
comparison
equal deleted inserted replaced
1868:36e1238db2f2 1869:7456bb2a3458
296 sm_destroy_session(session, "BOSH client silent for over "..session.bosh_max_inactive.." seconds"); 296 sm_destroy_session(session, "BOSH client silent for over "..session.bosh_max_inactive.." seconds");
297 end 297 end
298 end 298 end
299 299
300 local ports = module:get_option("bosh_ports") or { 5280 }; 300 local ports = module:get_option("bosh_ports") or { 5280 };
301 httpserver.new_from_config(ports, "http-bind", handle_request); 301 httpserver.new_from_config(ports, handle_request, { base = "http-bind" });
302 302
303 server.addtimer(on_timer); 303 server.addtimer(on_timer);