
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@blued-core/kafka-client
Advanced tools
基于 kafka-node 的一层封装。
npm i @blued-core/kafka-client
cache 与 qconf-conf 组件都为可选的,可以自己根据描述自定义
使用方式:
import KafkaClient from '@blued-core/kafka-client'
import { QconfConf } from '@blued-core/qconf-conf'
import Cache from '@blued-core/cache'
async function main () {
const qconfConf = new QconfConf({
path: 'XXXX'
})
const kafkaClient = new KafkaClient(qconfConf, new Cache())
const bootstrapKafka = kafkaClient.getClient('path')
bootstrapKafka.send('topics', 'Hello World')
}
main()
| 参数 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| topic | string | ✅ | 消息对应的 topic |
| message | string | ✅ | 消息体 |
| options | Object | ❌ | 发送消息时的部分参数 |
| 参数 | 类型 | 描述 |
|---|---|---|
| key | string | only needed when using keyed partitioner |
| partition | number | 写入的分区 |
| attributes | number |
FAQs
基于 kafka-node 的一层封装。
We found that @blued-core/kafka-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.