UNPKG

coap

Version:

A CoAP library for node modelled after 'http'

9 lines (6 loc) 165 B
const coap = require('../') // or coap const req = coap.request('coap://localhost/Matteo') req.on('response', (res) => { res.pipe(process.stdout) }) req.end()