Fixed base64Encoding deprecation, added the actual HTTP status code with key ‘HTTPResponseStatusCode’ in the NSError userInfo dictionary on status codes of >= 400, gives you the ability to see why a connection fails such as a 401 authentication failure
exposing SRHTTPResponseErrorKey in the SRWebSocket header file, changed the domain to SRWebSocketErrorDomain
Added compatibility check around base64EncodedStringWithOptions: and changed from NSDataBase64Encoding64CharacterLineLength to the default options
fixed that I accidentally used base64EncodedDataWithOptions: rather than base64EncodedStringWithOptions: in the compatibility check
Adjusting one more case of base64Encoding to include compatibility checks for base64EncodedStringWithOptions:
Merge pull request #168 from firstopinion/master

Fixed base64Encoding deprecation, added the actual HTTP status code to connection failure NSError
missing definition for SRHTTPResponseErrorKey
Merge pull request #192 from siberianisaev/fix_for_176845e

Missing definition for SRHTTPResponseErrorKey
fix logic error 'array access results in a null pointer dereference' refs #187
small refactoring for fix logic error 'array access results in a null pointer dereference'
Merge pull request #193 from siberianisaev/issue_187

fix logic error 'array access results in a null pointer dereference'
Add `sendPing:` method and a delegate method for received Pongs

Also added some sample code in the sample chat app.
Simplify ping/pong handling

Timing is an application-level thing