s2ws
v2.2.0
Published
Expose Spawn to WebSockets
Downloads
2
Readme
s2ws
Expose spawn to WebSockets
Example
var s2ws = require('s2ws');
var server = s2ws.server(function(body, func, reject) {
var url = body.url;
if(!url) {
return reject(['no url']);
}
func('curl', ['--', url]);
});
server.listen(3000);