configureHubRSocketConnector

Configures HubRSocketConnector to be compatible with hub-server and stores client-name, jwt token with proper mimeType.

This function is a shorthand for:

 hubRSocketConnector = HubRSocketConnector {
connectionConfig {
payloadMimeType = springServerMimeTypeConfig()
setupPayload {
buildPayload {
data(buildPacket { writeText(clientName) })
compositeMetadata {
add(
WellKnownMimeType.MessageRSocketAuthentication,
buildPacket { writeText(jwt) }
)
}
}
}
}
}

see HubRSocketConnector.