private void sendResponse(ChatResponse response) { Console.WriteLine("sending response " + response); //formatter.Serialize(stream, response); response.WriteDelimitedTo(stream); stream.Flush(); }
private void sendResponse(ChatResponse response) { Console.WriteLine("sending response " + response); lock (stream) { response.WriteDelimitedTo(stream); stream.Flush(); } }