From 7a15a3159516bba7d9a8ca9027682b48bd003e72 Mon Sep 17 00:00:00 2001 From: Mark Vayngrib Date: Mon, 1 Jun 2015 11:05:19 -0400 Subject: [PATCH] add socket.type --- UdpSocket.ios.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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