use of io.rsocket.core.RSocketConnector in project spring-framework by spring-projects.
the class DefaultRSocketRequesterBuilder method connect.
@Override
@SuppressWarnings("deprecation")
public Mono<RSocketRequester> connect(ClientTransport transport) {
RSocketStrategies rsocketStrategies = getRSocketStrategies();
MimeType metaMimeType = getMetadataMimeType();
MimeType dataMimeType = getDataMimeType(rsocketStrategies);
RSocketConnector connector = initConnector(this.rsocketConnectorConfigurers, metaMimeType, dataMimeType, rsocketStrategies);
return connector.connect(transport).map(rsocket -> new DefaultRSocketRequester(null, rsocket, dataMimeType, metaMimeType, rsocketStrategies));
}
Aggregations