Skip to content

Commit

Permalink
fix: Fix TCPServer documentation
Browse files Browse the repository at this point in the history
Fixes #79 Fixes #57
  • Loading branch information
Rapsssito committed Sep 12, 2020
1 parent 6460fb1 commit d0dcd5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ const server = TcpSocket.createServer(function(socket) {
socket.on('close', (error) => {
console.log('Closed connection with ', socket.address());
});
}).listen(12345, '0.0.0.0');
}).listen({ port: 12345, host: '0.0.0.0' });

server.on('error', (error) => {
console.log('An error ocurred with the server', error);
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
"tcp",
"react-native-library"
],
"funding": {
"type" : "individual",
"url" : "https://github.com/sponsors/Rapsssito"
},
"author": {
"name": "Rapsssito",
"email": "contact@rodrigomartin.dev"
Expand Down

0 comments on commit d0dcd5b

Please sign in to comment.