configureSetupPayload
fun RSocketConnectorBuilder.ConnectionConfigBuilder.configureSetupPayload(clientName: String, jwt: String)
Configures setupPayload
to store clientName and jwt token in proper format.
This function is a shorthand for:
setupPayload {
buildPayload {
data(buildPacket { writeText(clientName) })
compositeMetadata {
add(
WellKnownMimeType.MessageRSocketAuthentication,
buildPacket { writeText(jwt) }
)
}
}
}
Content copied to clipboard
see SetupPayload.