public void OnTransportRead(ITcpSession session, ref WrappedReader reader, WrappedArgs args) { List <ReadOnlySequence <byte> > buffers = (List <ReadOnlySequence <byte> >)args.Value; for (int i = 0; i < buffers.Count; i++) { session.Write(SocketConfig.message); } session.FlushAsync().NoAwait(); }
private void OnStartSend() { _session.Write(common.SocketConfig.message); _session.FlushAsync().NoAwait(); }