-
-
Notifications
You must be signed in to change notification settings - Fork 100
Closed
Labels
Description
Description
Typing for TcpSocket.address() seems to be different from what the library returns at runtime.
Steps to reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Or code:
// Your codeCurrent behavior
Calling TcpSocket.address() returns an object that resembles: {family: 'IPv4', port: 54014, address: '192.168.200.143'}
Expected behavior
According to the type definitions, TcpSocket.address() should just be a string: '192.168.200.143'
Screenshots
If applicable, add screenshots to help explain your problem.
Relevant information
| OS | ? |
| react-native | ? |
| react-native-tcp-socket | ? |