mirror of
https://github.com/status-im/react-native-udp.git
synced 2025-01-27 01:08:50 +00:00
add socket.type
This commit is contained in:
parent
4bbe2ef916
commit
7a15a31595
@ -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
|
||||
module.exports = UdpSocket
|
||||
|
Loading…
x
Reference in New Issue
Block a user