Permalink
Browse files

supports get_peername

  • Loading branch information...
1 parent 4251ca6 commit 31f0a6600c56580d2470f3b06f10c4c0e6736db1 @simulacre simulacre committed May 14, 2012
Showing with 5 additions and 1 deletion.
  1. +4 −0 lib/sinatra-websocket.rb
  2. +1 −1 lib/sinatra-websocket/version.rb
View
@@ -97,6 +97,10 @@ def initialize(app, socket, options = {})
debug [:initialize]
end
+ def get_peername
+ @socket.get_peername
+ end
+
# Overwrite dispath from em-websocket
# we already have request headers parsed so
# we can skip it and call build_with_request
@@ -1,4 +1,4 @@
module SinatraWebsocket
- VERSION = '0.1.0'
+ VERSION = '0.1.1'
end

0 comments on commit 31f0a66

Please sign in to comment.