appmesh 3.1.18 → 3.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/worker.js CHANGED
@@ -345,7 +345,7 @@ class AppMeshWorkerTCP extends AppMeshWorker {
345
345
  * @param {Buffer|string} [sslConfig.cert] - Client certificate
346
346
  * @param {Buffer|string} [sslConfig.key] - Client key
347
347
  * @param {boolean} [sslConfig.rejectUnauthorized=true] - Whether to verify SSL
348
- * @param {Array<string, number>|{host: string, port: number}} [tcpAddress=['127.0.0.1', 6059]] - TCP server address
348
+ * @param {Array<string, number>|{host: string, port: number}} [tcpAddress=['127.0.0.1', 6062]] - TCP server address
349
349
  * @param {Object} [options={}] - Additional options
350
350
  * @param {Object} [options.logger=console] - Logger instance
351
351
  * @param {AppMeshClientTCP} [options.client] - Pre-built client to reuse (shares its caller-owned bearer);
@@ -358,18 +358,18 @@ class AppMeshWorkerTCP extends AppMeshWorker {
358
358
  * cert: fs.readFileSync('/opt/appmesh/ssl/client.pem'),
359
359
  * key: fs.readFileSync('/opt/appmesh/ssl/client-key.pem')
360
360
  * };
361
- * const worker = new AppMeshWorkerTCP(sslConfig, ['127.0.0.1', 6059]);
361
+ * const worker = new AppMeshWorkerTCP(sslConfig, ['127.0.0.1', 6062]);
362
362
  *
363
363
  * @example
364
364
  * // Share a single TCP client between client-role and worker-role usage:
365
365
  * import { AppMeshClientTCP } from 'appmesh/tcp';
366
- * const client = new AppMeshClientTCP(sslConfig, ['127.0.0.1', 6059]);
366
+ * const client = new AppMeshClientTCP(sslConfig, ['127.0.0.1', 6062]);
367
367
  * client.setBearerToken(process.env.APPMESH_BEARER_TOKEN);
368
- * const worker = new AppMeshWorkerTCP(sslConfig, ['127.0.0.1', 6059], { client });
368
+ * const worker = new AppMeshWorkerTCP(sslConfig, ['127.0.0.1', 6062], { client });
369
369
  */
370
370
  constructor (
371
371
  sslConfig = null,
372
- tcpAddress = ['127.0.0.1', 6059],
372
+ tcpAddress = ['127.0.0.1', 6062],
373
373
  options = {}
374
374
  ) {
375
375
  // Accept the address-first object form: new AppMeshWorkerTCP({host, port}, sslConfig)