Return the protocol version from the Client handler.

This commit is contained in:
James Coglan
2013-04-29 21:37:35 +01:00
parent 38b19487c5
commit 8b975a0031
+4
View File
@@ -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)