mirror of
https://github.com/status-im/react-native-udp.git
synced 2025-02-17 19:27:01 +00:00
add socket.type
This commit is contained in:
parent
4bbe2ef916
commit
7a15a31595
@ -29,6 +29,7 @@ var STATE = {
|
|||||||
function UdpSocket(type) {
|
function UdpSocket(type) {
|
||||||
EventEmitter.call(this)
|
EventEmitter.call(this)
|
||||||
|
|
||||||
|
this.type = type
|
||||||
this._id = instances++
|
this._id = instances++
|
||||||
this._state = STATE.UNBOUND
|
this._state = STATE.UNBOUND
|
||||||
this._subscription = DeviceEventEmitter.addListener(
|
this._subscription = DeviceEventEmitter.addListener(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user