react-native-udp/UdpSockets.js

15 lines
259 B
JavaScript
Raw Normal View History

2015-05-09 21:55:49 +00:00
/**
2015-05-10 14:26:29 +00:00
* @providesModule UdpSockets
2015-05-09 21:55:49 +00:00
* @flow
*/
var UdpSocket = require('./UdpSocket');
2015-05-09 21:55:49 +00:00
exports.createSocket = function(options) {
if (typeof options === 'string') options = { type: options }
return new UdpSocket(options)
}
exports.Socket = UdpSocket;