public async Task <RSocketClient> ConnectAsync() { await Transport.ConnectAsync(); var server = RSocketProtocol.Handler2(this, Transport.Input, CancellationToken.None); ////TODO Move defaults to policy object new RSocketProtocol.Setup(keepalive: TimeSpan.FromSeconds(60), lifetime: TimeSpan.FromSeconds(180), metadataMimeType: "binary", dataMimeType: "binary").Write(Transport.Output); await Transport.Output.FlushAsync(); return(this); }
public void Start(CancellationToken cancel = default) { Handler = RSocketProtocol.Handler2(this, Transport.Input, cancel); }