title: REST Webservice for HTML5 Server Side Events
body: <p>At the moment I have an C# console application that exposes Web Services through <code>WebServiceHost</code> those web services are being used by an website but now I'm trying to add SSE to the site.</p>
  
  <p>The code at the client is:</p>
  
  <pre><code>var source = new EventSource(server+'eventSource');
  source.onmessage = function (event) {
    alert(event.data);
  };  
  </code></pre>
  
  <p>But on the server side, when I try to define the contract:</p>
  
  <pre><code>[OperationContract]
  [WebGet]
  String EventSource();
  </code></pre>
  
  <p>What the service is returning service is a xml with a String.</p>
  
  <p>What should I do on the server side to create a document available for SSE?</p>
  
  <p>Thanks in advace</p>