dat-socket
v1.0.1
Published
use in a project `npm install --save dat-socket`
Downloads
3
Readme
Usage
use in a project
npm install --save dat-socket
const server = require('dat-socket')
const port = 8080
const cb = () => console.log(`server listening on port: ${port}`)
server(port, cb)
for global install
$ npm i -g dat-socket
$ dat-socket
can optionally pass a port number, default is 3000
$ dat-socket 8080