class WebSocket::Driver::Draft76

def handshake_signature

def handshake_signature
  return nil unless @body.bytesize >= BODY_SIZE
  head = @body[0...BODY_SIZE]
  Digest::MD5.digest((@key_values + [head]).pack('N2A*'))
end