Skip to content

Commit

Permalink
chore(release): 4.2.0 [skip ci]
Browse files Browse the repository at this point in the history
# [4.2.0](v4.1.0...v4.2.0) (2020-07-06)

### Features

* Add setKeepAlive() method ([#62](#62)) ([35cea93](35cea93))
  • Loading branch information
semantic-release-bot committed Jul 6, 2020
1 parent 35cea93 commit 33cd0c5
Show file tree
Hide file tree
Showing 5 changed files with 22 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 @@
# [4.2.0](https://github.com/Rapsssito/react-native-tcp-socket/compare/v4.1.0...v4.2.0) (2020-07-06)


### Features

* Add setKeepAlive() method ([#62](https://github.com/Rapsssito/react-native-tcp-socket/issues/62)) ([35cea93](https://github.com/Rapsssito/react-native-tcp-socket/commit/35cea93d53f9d9bad9e28cf1a1657b8722335010))

# [4.1.0](https://github.com/Rapsssito/react-native-tcp-socket/compare/v4.0.0...v4.1.0) (2020-06-18)


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

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions lib/types/TcpServer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export default class TcpServer extends TcpSocket {
tlsCert?: any;
}, callback?: ((address: string) => void) | undefined): TcpServer;
setTimeout(timeout: number, callback?: (() => void) | undefined): TcpServer;
setNoDelay(noDelay?: boolean): TcpServer;
setKeepAlive(enable?: boolean, initialDelay?: number): TcpServer;
addListener(event: string | symbol, listener: (...args: any[]) => void): TcpServer;
on(event: string | symbol, listener: (...args: any[]) => void): TcpServer;
once(event: string | symbol, listener: (...args: any[]) => void): TcpServer;
Expand Down
13 changes: 11 additions & 2 deletions lib/types/TcpSocket.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,18 @@ export default class TcpSocket extends EventEmitter {
*
* Passing `true` for `noDelay` or not passing an argument will disable Nagle's algorithm for the socket. Passing false for noDelay will enable Nagle's algorithm.
*
* @param {boolean} noDelay
* @param {boolean} noDelay Default: `true`
*/
setNoDelay(noDelay?: boolean): void;
setNoDelay(noDelay?: boolean): TcpSocket;
/**
* Enable/disable keep-alive functionality, and optionally set the initial delay before the first keepalive probe is sent on an idle socket.
*
* `initialDelay` is ignored.
*
* @param {boolean} enable Default: `false`
* @param {number} initialDelay ***IGNORED**. Default: `0`
*/
setKeepAlive(enable?: boolean, initialDelay?: number): TcpSocket;
address(): string | undefined;
/**
* @param {string | Buffer | Uint8Array} data
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": "4.1.0",
"version": "4.2.0",
"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 33cd0c5

Please sign in to comment.