
Security News
Official Go SDK for MCP in Development, Stable Release Expected in August
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
tcp-log-client
Advanced tools
Stream and write tcp-log-server entries. Reconnect automatically.
var TCPLogClient = require('tcp-log-client')
var client = new TCPLogClient({
// 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}
})
.on('error', function (error) {
console.error(error)
})
.on('fail', function () {
console.error('Failed to reconnect.')
})
.once('ready', function () {
if (client.connected) {
client.write({example: 'entry'}, function (error, index) {
console.log('New entry index is %d', index)
// Permanently disconnect and end `client.readStream`.
client.destroy()
})
}
})
// Readable stream of log entries.
// Entries added with `client.write()` will be streamed, too.
client.readStream.on('data', function (chunk) {
console.log(chunk.index)
console.log(chunk.entry)
})
See also:
options.server
options.reconnect
FAQs
stream and write tcp-log-server entries
The npm package tcp-log-client receives a total of 427 weekly downloads. As such, tcp-log-client popularity was classified as not popular.
We found that tcp-log-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.