add socket.type
This commit is contained in:
parent
4bbe2ef916
commit
7a15a31595
|
@ -29,6 +29,7 @@ var STATE = {
|
|||
function UdpSocket(type) {
|
||||
EventEmitter.call(this)
|
||||
|
||||
this.type = type
|
||||
this._id = instances++
|
||||
this._state = STATE.UNBOUND
|
||||
this._subscription = DeviceEventEmitter.addListener(
|
||||
|
@ -229,4 +230,4 @@ UdpSocket.prototype.unref = function() {
|
|||
// anything?
|
||||
}
|
||||
|
||||
module.exports = UdpSocket
|
||||
module.exports = UdpSocket
|
||||
|
|
Loading…
Reference in New Issue