Пример #1
0
        private void Server_FrameReceived(object sender, ConnectionFramedDataEventArgs e)
        {
            string message = Translator.GetString(e.Data, "utf-8");

            PutMessageToLog(message);

            byte[] reply = Translator.GetBytes(message, "utf-8");
            e.Connection.SendFramedData(reply);
        }
Пример #2
0
 protected internal virtual void OnFrameReceived(ConnectionFramedDataEventArgs e)
 {
     ((ConnectionFramedDataEventHandler)Events[frameReceived])?.Invoke(this, e);
 }