LearnBoost/socket.io — pull request #979 by EugenDueck (2012-08-06 01:43:49+00:00)
Title: Use single quotes in htmlfile protocol

In JSON, there are lots of unavoidable double-quotes: For strings, and for the
object keys. Looking at a htmlfile stream you'll find many double quote escapes.

Example:

``````

If we used a single quote at the outer level though, we wouldn't need to escape
the double quotes, only the - much less used in JSON - single quotes.

The example above would thus turn into:

``````

Nicer to look at, and consumes fewer bytes. IE - the browser htmlfile is targeted
at - is fine with single-quotes, as it's legal JavaScript, and socket.io-spec does
not specify that, so I think it would be OK to change