examples/echo.rb in rev-websocket-0.1.2 vs examples/echo.rb in rev-websocket-0.1.3
- old
+ new
@@ -3,10 +3,10 @@
require 'rubygems'
require 'rev/websocket'
class EchoConnection < Rev::WebSocket
def on_open
- puts "WebSocket opened"
+ puts "WebSocket opened from '#{peeraddr[2]}': request=#{request.inspect}"
send_message("server: Hello, world!")
end
def on_message(data)
puts "WebSocket data received: '#{data}'"