title: EM::WebSocket.run as well as INotify file-watching
body: <p>This is the code I currently have:</p>
  
  <pre><code>#!/usr/bin/ruby
  require 'em-websocket'
  $cs = []
  EM.run do
      EM::WebSocket.run(:host =&gt; "::", :port =&gt; 8085) do |ws|
          ws.onopen do |handshake|
              $cs &lt;&lt; ws
          end
          ws.onclose do
              $cs.delete ws
          end
      end
  end
  </code></pre>
  
  <p>I would like to watch a file with <code>rb-inotify</code> and send a message to all connected clients (<code>$cs.each {|c| c.send "File changed"}</code>) when a file changes. The problem is, I do not understand EventMachine, and I can't seem to find a good tutorial.</p>
  
  <p>So if anyone could explain to me where to put the <code>rb-inotify</code>-related code, I would really appreciate it.</p>