Encode() 공개 메소드

public Encode ( ) : byte[]
리턴 byte[]
예제 #1
0
        public void Send(string text)
        {
            if (closed)
            {
                throw new IOException("websocket is closed");
            }

            WebSocketFrame frame = new WebSocketFrame(text);

            byte[] encoded = frame.Encode();
            client.GetStream().Write(encoded, 0, encoded.Length);
            client.GetStream().Flush();
        }
예제 #2
0
파일: WebSocket.cs 프로젝트: araqne/webfx
        public void Send(string text)
        {
            if (closed)
                throw new IOException("websocket is closed");

            WebSocketFrame frame = new WebSocketFrame(text);
            byte[] encoded = frame.Encode();
            client.GetStream().Write(encoded, 0, encoded.Length);
            client.GetStream().Flush();
        }