Skip to content
This repository has been archived by the owner on Mar 25, 2020. It is now read-only.

kpcyrd/s2ws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

Expose Spawn to WebSockets

Resources

License

Stars

Watchers

Forks

Packages

No packages published