ALE.Tcp.WebSocket.SendUnencoded C# (CSharp) Метод

SendUnencoded() публичный Метод

public SendUnencoded ( string text, Action callback = null ) : void
text string
callback Action
Результат void
        public void SendUnencoded(string text, Action<Exception> callback = null)
        {
            byte[] writeBuffer = Encoding.GetBytes(text);
            NetworkStream netstream = _tcp.GetStream();
            var state = new SendState(netstream, callback);
            netstream.BeginWrite(writeBuffer, 0, writeBuffer.Length, SendCallback, state);
        }