Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
adonis5-redis-rpc
Advanced tools
Simple RPC Provider for Adonis 5, based on Redis pub/sub transport
Adonis, Adonis 5, Redis RPC
Simple RPC Provider for Adonis 5, based on Redis pub/sub transport
npm i adonis5-redis-rpc
node ace invoke adonis5-redis-rpc
You can create adonis command (node ace make:command RPCServer) like this:
import { BaseCommand } from '@adonisjs/core/build/standalone'
import RedisRPC from '@ioc:Adonis/Addons/RedisRPC'
export default class VangaPlaincalc extends BaseCommand {
/**
* Command name is used to run the command
*/
public static commandName = 'vanga:plaincalc'
/**
* Command description is displayed in the "help" output
*/
public static description = ''
public static settings = {
/**
* Set the following value to true, if you want to load the application
* before running the command
*/
loadApp: true,
/**
* Set the following value to true, if you want this command to keep running until
* you manually decide to exit the process
*/
stayAlive: false,
}
public async run() {
this.logger.info('Hello world!')
await RedisRPC.server()
RedisRPC.addHandler<{}>('exampleMethod', async (payload) => {
console.log(payload)
return {success: true}
})
}
}
import Route from '@ioc:Adonis/Core/Route'
import RedisRPC from '@ioc:Adonis/Addons/RedisRPC'
Route.get('example', () => {
await RedisRPC.client()
const result = await RedisRPC.call('exampleMethod', {data: 'message'})
return result
})
FAQs
Simple RPC Provider for Adonis 5, based on Redis pub/sub transport
We found that adonis5-redis-rpc 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.