private static void ProcessServerFrames(ITransport<StompFrame> server) { for (; ; ) { var frame = server.GetNextFrame(); if (frame == null) { break; } var text = frame.BodyText; Log.Debug("Server: received message: " + text); server.SendFrame(frame); } }