Stream and write tcp-log-server entries. Reconnect automatically.
var TCPLogClient = var client = // Use these options for `require('net').connect(options)`. server: port: port // Enable TCP keepalive. Enabled by default. keepAlive: true // Disable the Nagle algorithm. Disabled by default. noDelay: true // Start reading from entry index 1. 1 by default. from: 1 // Stop trying to reconnect and fail after 5 attempts. reconnect: failAfter: 5 // Readable stream of log entries.// Entries added with `client.write()` will be streamed, too.clientreadStream
See also:
- net documentation for
options.server
- reconnect-core for
options.reconnect
- migrate-versioned-log for versioning log entries