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