Skip to content

Commit c68215c

Browse files
chore(release): 5.6.1 [skip ci]
## [5.6.1](v5.6.0...v5.6.1) (2022-04-18) ### Bug Fixes * destroy & end work as no-op on closed streams ([b129cf3](b129cf3)), closes [#145](#145)
1 parent b129cf3 commit c68215c

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [5.6.1](https://github.com/Rapsssito/react-native-tcp-socket/compare/v5.6.0...v5.6.1) (2022-04-18)
2+
3+
4+
### Bug Fixes
5+
6+
* destroy & end work as no-op on closed streams ([b129cf3](https://github.com/Rapsssito/react-native-tcp-socket/commit/b129cf3b4b93e84bf79e36766ed296ffa8041bf2)), closes [#145](https://github.com/Rapsssito/react-native-tcp-socket/issues/145)
7+
18
# [5.6.0](https://github.com/Rapsssito/react-native-tcp-socket/compare/v5.5.0...v5.6.0) (2022-02-22)
29

310

coverage/coverage-final.json

+1-1
Large diffs are not rendered by default.

lib/types/Socket.d.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,15 @@ export default class Socket extends EventEmitter<SocketEvents & ReadableEvents,
163163
*/
164164
address(): AddressInfo | {};
165165
/**
166-
* @param {string | Buffer | Uint8Array} data
166+
* Half-closes the socket. i.e., it sends a FIN packet. It is possible the server will still send some data.
167+
*
168+
* @param {string | Buffer | Uint8Array} [data]
167169
* @param {BufferEncoding} [encoding]
168170
*/
169-
end(data: string | Buffer | Uint8Array, encoding?: "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | undefined): Socket;
171+
end(data?: string | Buffer | Uint8Array | undefined, encoding?: "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | undefined): Socket;
172+
/**
173+
* Ensures that no more I/O activity happens on this socket. Destroys the stream and closes the connection.
174+
*/
170175
destroy(): Socket;
171176
/**
172177
* Sends data on the socket. The second parameter specifies the encoding in the case of a string — it defaults to UTF8 encoding.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-native-tcp-socket",
33
"title": "React Native Tcp Socket",
4-
"version": "5.6.0",
4+
"version": "5.6.1",
55
"description": "React Native TCP socket API for Android & iOS with SSL/TLS support",
66
"main": "src/index.js",
77
"types": "lib/types/index.d.ts",

0 commit comments

Comments
 (0)