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); }
protected internal virtual void OnFrameReceived(ConnectionFramedDataEventArgs e) { ((ConnectionFramedDataEventHandler)Events[frameReceived])?.Invoke(this, e); }