coils-udp

1.0.3 • Public • Published

UDP

[application._udp]

Install

$ npm i coils-udp -S

Usage

Coils application constructor

let CoilsUdp = require('coils-udp')
this.use(CoilsUdp)
this._udp.startUdp({
    PORT: 3000,
    onMessage (message) {
        console.log(message)
        message.replyText('haha received!')
    }
})

Udp

  • sendText
  • sendBuffer
  • sendObject
  • sendPing

Message

  • replyText
  • replyBuffer

Readme

Keywords

none

Package Sidebar

Install

npm i coils-udp

Weekly Downloads

2

Version

1.0.3

License

ISC

Unpacked Size

23.5 kB

Total Files

9

Last publish

Collaborators

  • wuyuedefeng