title: How to send Request only if string matches data
body: <p>I would like my script to read the "ident" from the event data and if it matches a specific string. Print "hello" or something like that in console &amp; if the "ident" doesn't matche the specific string. Send the post request.</p>
  
  <p>Here is some of the data printed in a example. <a href="https://pastebin.com/ZMck0WsM" rel="nofollow noreferrer">https://pastebin.com/ZMck0WsM</a></p>
  
  <pre><code>var evtSource = new EventSource("http://colorillo.com/_watch//_index?_=1559553617984");
  
  evtSource.onmessage = function(e) {
  var obj = JSON.parse(e.data);
  var line = JSON.stringify(obj.line)
  
  $.post("/draw.php?ing=_index", {
                  l: (line),
                  w: ("30"),
                  c: ("#ffffff"),
                  o: ("100"),
                  f: ("1"),
                  _: ("false")
              })
  }
  </code></pre>