Skip to content

Commit d0dcd5b

Browse files
committed
fix: Fix TCPServer documentation
Fixes #79 Fixes #57
1 parent 6460fb1 commit d0dcd5b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ const server = TcpSocket.createServer(function(socket) {
153153
socket.on('close', (error) => {
154154
console.log('Closed connection with ', socket.address());
155155
});
156-
}).listen(12345, '0.0.0.0');
156+
}).listen({ port: 12345, host: '0.0.0.0' });
157157

158158
server.on('error', (error) => {
159159
console.log('An error ocurred with the server', error);

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
"tcp",
4242
"react-native-library"
4343
],
44+
"funding": {
45+
"type" : "individual",
46+
"url" : "https://github.com/sponsors/Rapsssito"
47+
},
4448
"author": {
4549
"name": "Rapsssito",
4650
"email": "contact@rodrigomartin.dev"

0 commit comments

Comments
 (0)