|
5 | 5 | <img src="https://img.shields.io/npm/v/react-native-tcp-socket?color=gr&label=npm%20version" /> |
6 | 6 | <p/> |
7 | 7 |
|
8 | | -React Native TCP socket API for Android & iOS with **client SSL/TLS support**. It allows you to create TCP client and server sockets, imitating Node's [net](https://nodejs.org/api/net.html) API functionalities (check the available [API](#api) for more information). |
| 8 | +React Native TCP socket API for Android, iOS & macOS with **client SSL/TLS support**. It allows you to create TCP client and server sockets, imitating Node's [net](https://nodejs.org/api/net.html) API functionalities (check the available [API](#api) for more information). |
9 | 9 |
|
10 | 10 | ## Table of Contents <!-- omit in toc --> |
11 | 11 |
|
@@ -246,7 +246,7 @@ Here are listed all methods implemented in `react-native-tcp-socket`, their func |
246 | 246 | ##### `createConnection: options` <!-- omit in toc --> |
247 | 247 | **Required**. Available options for creating a socket. It must be an `object` with the following properties: |
248 | 248 |
|
249 | | -| Property | Type | iOS | Android |Description | |
| 249 | +| Property | Type | iOS/macOS | Android |Description | |
250 | 250 | | --------------------- | ------ | :--: | :-----: |-------------------------------------------------------------------------------------------------- | |
251 | 251 | | **`port`** | `<number>` | ✅ | ✅ | **Required**. Port the socket should connect to. | |
252 | 252 | | `host` | `<string>` | ✅ | ✅ | Host the socket should connect to. IP address in IPv4 format or `'localhost'`. **Default**: `'localhost'`. | |
@@ -282,7 +282,7 @@ Here are listed all methods implemented in `react-native-tcp-socket`, their func |
282 | 282 | ##### `listen: options` <!-- omit in toc --> |
283 | 283 | **Required**. Available options for creating a server socket. It must be an `object` with the following properties: |
284 | 284 |
|
285 | | -| Property | Type | iOS | Android |Description | |
| 285 | +| Property | Type | iOS/macOS | Android |Description | |
286 | 286 | | --------------------- | ------ | :--: | :-----: |-------------------------------------------------------------------------------------------------- | |
287 | 287 | | **`port`** | `<number>` | ✅ | ✅ | **Required**. Port the socket should listen to. | |
288 | 288 | | `host` | `<string>` | ✅ | ✅ | Host the socket should listen to. IP address in IPv4 format or `'localhost'`. **Default**: `'0.0.0.0'`. | |
|
0 commit comments