Greetings. I want to send some specific `config` t...
# rsocket
r
Greetings. I want to send some specific
config
to backend at the start of whole
rsocket
interaction. It affects buisness logic, so I want to do it in better way. Now I just put that in
setupPayload
, but saw function
metadataPush
in
RSocket
class. Seems like this is something I need. Any details about it, guys?
o
Hey Looks like setup payload is better way for it, if you for example want to validate sent config on setup, and reject setup
metadataPuch
on other side, can be used multiple times during connection, to update this connection related config If you will need to support updating config during connection lifetime - use
metadataPush
, if this is one time operation - use
setupPayload
✔️ 1