udp-chat-server
v0.0.4
Published
Simple echo server that broadcasts & listens for UDP traffic.
Downloads
4
Readme
udp-chat-server
Simple echo server that broadcasts & listens for UDP traffic.
Installation
$ npm install udp-chat-server
Usage
import chat from 'udp-chat-server'
const send = chat({
onMessage: ({message, remote}) => {
console.info('Received', message, 'from', remote)
}
})
send({
message: 'Hello world'
})