Skip to content

Commit

Permalink
chore(release): 5.6.1 [skip ci]
Browse files Browse the repository at this point in the history
## [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)
  • Loading branch information
semantic-release-bot committed Apr 18, 2022
1 parent b129cf3 commit c68215c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [5.6.1](https://github.com/Rapsssito/react-native-tcp-socket/compare/v5.6.0...v5.6.1) (2022-04-18)


### Bug Fixes

* 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)

# [5.6.0](https://github.com/Rapsssito/react-native-tcp-socket/compare/v5.5.0...v5.6.0) (2022-02-22)


Expand Down
2 changes: 1 addition & 1 deletion coverage/coverage-final.json

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions lib/types/Socket.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,15 @@ export default class Socket extends EventEmitter<SocketEvents & ReadableEvents,
*/
address(): AddressInfo | {};
/**
* @param {string | Buffer | Uint8Array} data
* Half-closes the socket. i.e., it sends a FIN packet. It is possible the server will still send some data.
*
* @param {string | Buffer | Uint8Array} [data]
* @param {BufferEncoding} [encoding]
*/
end(data: string | Buffer | Uint8Array, encoding?: "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | undefined): Socket;
end(data?: string | Buffer | Uint8Array | undefined, encoding?: "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex" | undefined): Socket;
/**
* Ensures that no more I/O activity happens on this socket. Destroys the stream and closes the connection.
*/
destroy(): Socket;
/**
* Sends data on the socket. The second parameter specifies the encoding in the case of a string — it defaults to UTF8 encoding.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-native-tcp-socket",
"title": "React Native Tcp Socket",
"version": "5.6.0",
"version": "5.6.1",
"description": "React Native TCP socket API for Android & iOS with SSL/TLS support",
"main": "src/index.js",
"types": "lib/types/index.d.ts",
Expand Down

0 comments on commit c68215c

Please sign in to comment.