diff --git a/UdpSocket.ios.js b/UdpSocket.ios.js index bc81a2d..d09ee0b 100644 --- a/UdpSocket.ios.js +++ b/UdpSocket.ios.js @@ -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 \ No newline at end of file +module.exports = UdpSocket