RegisterSub #
Attaches a notifications listener to an existing subscription.
Signature #
RegisterSub(channel string, roomId string, filters json.RawMessage, subscribeToSelf bool, notificationResult chan<- types.NotificationResult, onReconnectChannel chan<- interface{})
Arguments #
Argument | Type | Description |
---|---|---|
channel | string | Subscription channel identifier |
roomId | const std::string& | Subscription room identifier |
filters | const std::string& | Subscription filters |
subscribeToSelf | bool | Subscribe to notifications fired by our own queries |
notificationResult | chan<- types.NotificationResult | A channel which receive notifications |
onReconnectChannel | chan<- interface{} | A channel which will be written to when reconnection will be triggered |
Edit this page on Github (opens new window)