跳到主要内容

start

开始处理: 订阅指定的主题并启动消息消费

声明

bool start(string topic, string expression = nil)

参数

参数名描述
topic消息主题
expression用于消息过滤的表达式

返回值

true-成功/false-失败

使用方式

返回文档