From 485883eaa48f5344a16da108f724e903fa02e38a Mon Sep 17 00:00:00 2001 From: Andy Prock Date: Mon, 15 Jun 2015 13:54:59 -0700 Subject: [PATCH] export UdpSocket as Socket, enabling the use of dgram.Socket --- UdpSockets.ios.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/UdpSockets.ios.js b/UdpSockets.ios.js index 7712242..f94c64f 100644 --- a/UdpSockets.ios.js +++ b/UdpSockets.ios.js @@ -6,10 +6,10 @@ var UdpSocket = require('./UdpSocket.ios') -module.exports = { - createSocket: function(type) { - return new UdpSocket({ - type: type - }) - } -} \ No newline at end of file +exports.createSocket = function(type) { + return new UdpSocket({ + type: type + }) +} + +exports.Socket = UdpSocket;