From 8b975a00310f810e46f860dbff4f97231195fdde Mon Sep 17 00:00:00 2001 From: James Coglan Date: Mon, 29 Apr 2013 21:37:35 +0100 Subject: [PATCH] Return the protocol version from the Client handler. --- lib/websocket/protocol/client.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/websocket/protocol/client.rb b/lib/websocket/protocol/client.rb index 03cd3f6..f889090 100644 --- a/lib/websocket/protocol/client.rb +++ b/lib/websocket/protocol/client.rb @@ -14,6 +14,10 @@ module WebSocket @accept = Hybi.generate_accept(@key) end + def version + 'hybi-13' + end + def start return false unless @ready_state == -1 @socket.write(handshake_request)