
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.
@dashevo/abci
Advanced tools
ABCI server for Node.js. Supports Tenderdash 0.34+
npm install @dashevo/abci
Requires Node.js v10.9+
let createServer = require('abci')
let server = createServer({
info (request) {
console.log('got info request', request)
return { ... }
}
// implement any ABCI method handlers here
})
process.on('SIGTERM', async () => {
await server.close();
// Gracefull shutdown
process.exit(0);
});
server.on('connection', (socket) => {
console.log(`Accepted new ABCI connection #${socket.connection.id} from ${socket.remoteAddress}:${socket.remotePort}`);
socket.on('error', (e) => {
console.error(`ABCI connection #${socket.connection.id} error`);
});
socket.once('close', (hasError) => {
let message = `ABCI connection #${socket.connection.id} is closed`;
if (hasError) {
message += ' with error';
}
console.log(message);
});
});
server.once('close', () => {
console.log('ABCI server is closed');
});
server.on('error', async (e) => {
console.error(e);
// Graceful shutdown
process.exit(1);
});
server.on('listening', () => {
console.log(`ABCI server is waiting for connections`);
});
server.listen(26658)
let server = createServer(app)
Returns a net.Server
that accepts ABCI connections from a Tendermint node.
app
should be an object with ABCI method handler functions. Each handler receives one request
argument, and can return the response value or a Promise
which resolves to the response value. cb
responds to the ABCI request with either the error or response
value.
Supported ABCI methods are:
echo
flush
info
setOption
initChain
query
beginBlock
checkTx
deliverTx
endBlock
commit
FAQs
Tenderdash ABCI server
The npm package @dashevo/abci receives a total of 3 weekly downloads. As such, @dashevo/abci popularity was classified as not popular.
We found that @dashevo/abci demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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.