1 # Example of Sunshowers + Sinatra 0.9.4, for use with echo_client.{rb,py}
6 # There's probably a better/cleaner way to do this, but we're not
7 # very familiar with Sinatra...
8 # Let us know of a better way at sunshowers@librelist.com
9 class Sinatra::Request < Rack::Request
10 include Sunshowers::WebSocket
13 class Sinshowers < Sinatra::Base
19 ws_io.each do |record|
20 ws_io.write_utf8(record)
21 break if record == "Goodbye"
25 "You're not using Web Sockets"