HubServerConnector  
  fun HubServerConnector(reconnectPredicate: ReconnectPredicate? = null, keepAlive: KeepAlive? = null, payloadMimeType: PayloadMimeType? = springServerMimeTypeConfig(), setupPayload: SetupPayload? = null): HubServerConnector
A factory function for creating a HubServerConnector with the given parameters.
Parameters
setupPayload 
the SetupPayload to be used in set-up Frames. The hub-server expects in setupPayload the client's name/path in data and jwt token in metadata of type "message/x.rsocket.authentication.v0", 0x7C (see SetupPayload.withJwt).
reconnectPredicate 
predicate for retry logic. When configured, HubRSocketConnector.connect will return custom RSocket implementation, which will try to reconnect if connection lost and reconnectPredicate returns true.
payloadMimeType  
the PayloadMimeType to be used during the interactions. In most cases the default value is sufficient, which configures it to be compatible with the hub-server (see springServerMimeTypeConfig).