|
@@ -602,14 +602,14 @@ When set to <code>false</code> clients will be allowed to connect without authen
|
|
|
desc {
|
|
desc {
|
|
|
en: """When publishing or subscribing, prefix all topics with a mountpoint string.
|
|
en: """When publishing or subscribing, prefix all topics with a mountpoint string.
|
|
|
The prefixed string will be removed from the topic name when the message is delivered to the subscriber. The mountpoint is a way that users can use to implement isolation of message routing between different listeners.
|
|
The prefixed string will be removed from the topic name when the message is delivered to the subscriber. The mountpoint is a way that users can use to implement isolation of message routing between different listeners.
|
|
|
-For example if a client A subscribes to `t` with `listeners.tcp.<name>.mountpoint` set to `some_tenant`, then the client actually subscribes to the topic `some_tenant/t`. Similarly, if another client B (connected to the same listener as the client A) sends a message to topic `t`, the message is routed to all the clients subscribed `some_tenant/t`, so client A will receive the message, with topic name `t`. Set to `\"\"` to disable the feature.
|
|
|
|
|
|
|
+For example if a client A subscribes to `t` with `listeners.tcp.\<name>.mountpoint` set to `some_tenant`, then the client actually subscribes to the topic `some_tenant/t`. Similarly, if another client B (connected to the same listener as the client A) sends a message to topic `t`, the message is routed to all the clients subscribed `some_tenant/t`, so client A will receive the message, with topic name `t`. Set to `\"\"` to disable the feature.
|
|
|
Variables in mountpoint string:
|
|
Variables in mountpoint string:
|
|
|
- <code>${clientid}</code>: clientid
|
|
- <code>${clientid}</code>: clientid
|
|
|
- <code>${username}</code>: username
|
|
- <code>${username}</code>: username
|
|
|
"""
|
|
"""
|
|
|
zh: """发布或订阅时,在所有主题前增加前缀字符串。
|
|
zh: """发布或订阅时,在所有主题前增加前缀字符串。
|
|
|
当消息投递给订阅者时,前缀字符串将从主题名称中删除。挂载点是用户可以用来实现不同监听器之间的消息路由隔离的一种方式。
|
|
当消息投递给订阅者时,前缀字符串将从主题名称中删除。挂载点是用户可以用来实现不同监听器之间的消息路由隔离的一种方式。
|
|
|
-例如,如果客户端 A 在 `listeners.tcp.<name>.mountpoint` 设置为 `some_tenant` 的情况下订阅 `t`,则客户端实际上订阅了 `some_tenant/t` 主题。 类似地,如果另一个客户端 B(连接到与客户端 A 相同的侦听器)向主题 `t` 发送消息,则该消息被路由到所有订阅了 `some_tenant/t` 的客户端,因此客户端 A 将收到该消息,带有 主题名称`t`。 设置为 `\"\"` 以禁用该功能。
|
|
|
|
|
|
|
+例如,如果客户端 A 在 `listeners.tcp.\<name>.mountpoint` 设置为 `some_tenant` 的情况下订阅 `t`,则客户端实际上订阅了 `some_tenant/t` 主题。 类似地,如果另一个客户端 B(连接到与客户端 A 相同的侦听器)向主题 `t` 发送消息,则该消息被路由到所有订阅了 `some_tenant/t` 的客户端,因此客户端 A 将收到该消息,带有 主题名称`t`。 设置为 `\"\"` 以禁用该功能。
|
|
|
挂载点字符串中可用的变量:
|
|
挂载点字符串中可用的变量:
|
|
|
- <code>${clientid}</code>:clientid
|
|
- <code>${clientid}</code>:clientid
|
|
|
- <code>${username}</code>:用户名
|
|
- <code>${username}</code>:用户名
|