title: ruby faye server with scala client
body: <p>I have a Faye server running with ruby, and now, I need to send notifications to a client in Scala, but scala can't handle Bayeux, only WebSockets.<br>
  Is there a way to change my connection type from Bayeux to using websockets?<br>
  Some conf. files I have</p>
  
  <p><strong>faye.ru</strong></p>
  
  <pre><code>require 'faye'
  
  Faye::WebSocket.load_adapter('thin')
  
  bayeux = Faye::RackAdapter.new(:mount =&gt; '/faye', :timeout =&gt; 25)
  run bayeux
  </code></pre>
  
  <p><strong>sending notifications</strong></p>
  
  <pre><code> def broadcast(channel, data)
      message = {:channel =&gt; channel, :data =&gt; data, :ext =&gt; {:auth_token =&gt; FAYE_TOKEN}}
      uri = URI.parse("http://192.168.0.92:9292/faye")
      Net::HTTP.post_form(uri, :message =&gt; message.to_json)
    end
  </code></pre>