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