mirror of
https://github.com/status-im/react-native-udp.git
synced 2025-02-04 13:13:30 +00:00
Merge pull request #1 from aprock/master
export UdpSocket as Socket, enabling the use of dgram.Socket
This commit is contained in:
commit
92d40936b0
@ -6,10 +6,10 @@
|
||||
|
||||
var UdpSocket = require('./UdpSocket.ios')
|
||||
|
||||
module.exports = {
|
||||
createSocket: function(type) {
|
||||
return new UdpSocket({
|
||||
type: type
|
||||
})
|
||||
}
|
||||
}
|
||||
exports.createSocket = function(type) {
|
||||
return new UdpSocket({
|
||||
type: type
|
||||
})
|
||||
}
|
||||
|
||||
exports.Socket = UdpSocket;
|
||||
|
Loading…
x
Reference in New Issue
Block a user