add socket.type

This commit is contained in:
Mark Vayngrib 2015-06-01 11:05:19 -04:00
parent 4bbe2ef916
commit 7a15a31595
1 changed files with 2 additions and 1 deletions

View File

@ -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