Remove errant assert(NO) in _sendFrameWithOpcode
use 'normal closure' close code by default, fixes #127

SocketRocket uses the invalid close code -1 as the value in the default close method. In addition to being invalid, it causes issues when communicating with some libraries. See section 11.7 WebSocket Close Code Number Registry in the WebSocket Protocol RFC 6455 for more detail.
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
use normal close constant instead of hard-coded value
Merge pull request #157 from pizthewiz/valid-close-code

use 'normal closure' close code by default, fixes #127
exposing SRHTTPResponseErrorKey in the SRWebSocket header file, changed the domain to SRWebSocketErrorDomain
Merge pull request #154 from reggie-inmotion/master

Remove errant assert(NO) in _sendFrameWithOpcode
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'
Use a weak reference for the delegate.

Fix #78.
Merge pull request #193 from siberianisaev/issue_187

fix logic error 'array access results in a null pointer dereference'
Merge pull request #200 from paulyoung/delegate-weak-reference

Use a weak reference for the delegate.
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

Style updates
Merge pull request #186 from cbrauchli/add-ping

Add ability to send a ping message and notify delegates of "pong" responses