We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net.createServer has an optional options argument as the first parameter - https://nodejs.org/api/net.html#netcreateserveroptions-connectionlistener
net.createServer
options
This module expects the first option to be a listener:
react-native-tcp-socket/src/index.js
Lines 8 to 14 in 3b7ac04
const server = net.connect({ noDelay: true, keepAlive: true }, () => { console.info('server started') })
An error is thrown
TypeError: The listener must be a function
The options object should be supported.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
net.createServer
has an optionaloptions
argument as the first parameter - https://nodejs.org/api/net.html#netcreateserveroptions-connectionlistenerThis module expects the first option to be a listener:
react-native-tcp-socket/src/index.js
Lines 8 to 14 in 3b7ac04
Steps to reproduce
Current behavior
An error is thrown
Expected behavior
The options object should be supported.
Relevant information
The text was updated successfully, but these errors were encountered: