web6
Shim the "web" framework's socketHandler
function for node.js
v6.x
In theory, you can just add the digit 6
to your require('web')
and it
should work. If you know of any tests for "web" interface compatibility,
please let me know
so I can improve this shim to accomodate them.
Usage
from test/hello-server.js:
var web = makeApp = app appOpts = greeting: 'Hello World!' tcpServer = net tcpConnectionHandler; if cfgannounceExtras appOptsgreeting += '\n\nWere you looking for one of these extras?\n' + cfgannounceExtras; app = ; // function (request, respond) { … }if cfgaddExtras app = cfg; tcpConnectionHandler = web;tcpServer; tcpServer;tcpServer;
More examples:
License
ISC