DotNetLightning


PluginJsonRpcSubscriptionAttribute Type

Marker attribute for the rpc handler to be an subscription handler. Using this instead of PluginJsonRpcMethod will affect the behavior of the getmanifest, so that c-lightning does not expose the method to users. Instead, c-lightning will send a notification topic to the handler with this attribute. pass the topic name of an argument to this attribute.

Constructors

Constructor Description

PluginJsonRpcSubscriptionAttribute(topic)

Full Usage: PluginJsonRpcSubscriptionAttribute(topic)

Parameters:
    topic : string

Returns: PluginJsonRpcSubscriptionAttribute
topic : string
Returns: PluginJsonRpcSubscriptionAttribute

Instance members

Instance member Description

this.Topic

Full Usage: this.Topic

Returns: string
Returns: string