
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@skyring/tcp-transport
Advanced tools
A TCP based transport with connection pooling for Skyring.
$ npm install @skyring/tcp-transport --save
Skyring accepts an array property transports
. Each entry can be a string or a named function.
If given a string, skyring will pass it to require
which must resolve to a named function
const Skyring = require('skyring')
const server = new Skyring({
transports: ['@skyring/tcp-transport']
, seeds: ['localhost:3455']
})
server
.load()
.listen(3000)
// tcp echo server
'use strict'
let count = 0
const port = process.env.PORT || 5555
const net = require('net')
const server = net.createServer((socket) => {
socket.on('data', (chunk) => {
console.log(`${++count} ` + chunk)
})
})
process.once('SIGINT', onSignal)
process.once('SIGTERM', onSignal)
server.listen(port, (err) => {
if (err) {
console.log(err)
process.exitCode = 1
}
console.log('server listening')
})
function onSignal() {
server.close()
}
$ curl -XPOST http://localhost:3000/timer -H 'Content-Type: application/json' -d '{
"timeout":3000
, "data":"hello world!"
, "callback": {
"transport": "tcp"
, "method":"unused"
, "uri": "tcp://0.0.0.0:5555"
}
}'
>>> 1 hello world !
FAQs
A TCP transport for skyring service
The npm package @skyring/tcp-transport receives a total of 2 weekly downloads. As such, @skyring/tcp-transport popularity was classified as not popular.
We found that @skyring/tcp-transport demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.