Closed neolas closed 7 years ago
Hi.
The medatada
option (actually, it will be renamed in volatile
in next release) are used to propagate volatile data from the input request to the response.
While subscribing to a room, it is only used to be propagated to other users that are notified about a new subscription, or a leaving subscription, not about other document (see http://docs.kuzzle.io/api-reference/?others#subscribe-to-a-room )
We should discuss about your use case to find the best alternative for that.
Should be possible after https://github.com/kuzzleio/kuzzle/issues/790 is implemented.
I make a subscription with a custom controller which permits to force filters on backend-side. I would like add some metadatas informations in order to apply some specific soperation on content before notify in my custom pipe (cf #790). For this, I try to add content in request.input.metadata when I make subscription but the field metadata is not filled in notification.
Custom controller :
I want have metadata {'hello':'world'} in every notifications in this channel. Is it possible by this way and it's a bug or another technique exists ?
Thanks,