SDK
SDK Golang v2.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

RegisterSub #

Attaches a notifications listener to an existing subscription.

Signature #

Copied to clipboard!
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