title: stream two event messages in one from gRPC Server
body: <p>I have a scenario where I am trying to send multiple messages in one and trying to stream the one message from the gRPC server to the gRPC client side.</p>
  <p>My <code>proto</code> files on server side look like this:</p>
  <pre><code>Service Greeter{
  rpc AccumulateEvents (EventRequest) returns (stream EventsMessage);
  }
  message EventsMessage{
      FirstEvent firstEvents =1;
      SecondEvents secondEvent = 2;
  }
  
  message EventRequest{
  //sending empty request
  }
  </code></pre>
  <p>The service method is as follows:</p>
  <pre><code>public override async Task AccumulateEvents(EventRequest eventRequest, IServerStreamWriter &lt; EventsMessage &gt; responseStream, ServerCallContext context) {
    IDisposable disposable4 = service.SubscribeToEvents(OnEvents);
    service.execute();
    await responseStream.WriteAsync(new EventsMessage {
      FirstEvent = firstEvent, SecondEvents = secondEvents
    });
  
  }
  </code></pre>
  <p>When I am trying to fetch  and parse the stream from the client side,i am getting <code>null</code> for <code>secondEvent</code> part of the message <code>EventsMessage</code>. Only <code>firstEvents</code> was returned from the server to the client. I tried debugging and could see <code>secondEvent</code> getting populated but then it became null when the streaming started from the server.
  Also, <code>secondEvent</code> is a repeated field. I am not sure if that is the reason of it becoming <code>null</code>.</p>
  <p>Please let me know what i might be missing here.</p>