Hi, This is more of a "just because" than anything else...
Here is an example on how to run a WSAPI application (Mercury in this case [1]) with Nanoki's HTTP engine [2], using its build-in TCPServer [3] and a WSAPI handler [4]:
local HTTP = require( 'HTTP' ) local TCPServer = require( 'TCPServer' ) local WSAPI = require( 'WSAPI' ) HTTP[ '.*' ] = WSAPI( require( 'greetings' ).run ) TCPServer( '127.0.0.1', 1080 )( HTTP ) While this "work", none of this necessarily make any sense :) [1] http://github.com/nrk/mercury [2] http://dev.alt.textdrive.com/browser/HTTP/HTTP.lua [3] http://dev.alt.textdrive.com/browser/HTTP/TCPServer.lua [4] http://dev.alt.textdrive.com/browser/HTTP/WSAPI.lua _______________________________________________ Kepler-Project mailing list Kepler-Project@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project http://www.keplerproject.org/