square/SocketRocket — pull request #191 by bgfriend0 (2014-08-19 23:10:32+00:00)
Title: Fix block retain cycles and rename local 'self' variables to avoid confusion

Several ivars were accessed in blocks, implicitly causing self to be retained. I verified that this caused a retain cycle on SRWebSocket, and these commits resolved the retain cycle for me.

Additionally, I renamed the local 'self' variables to avoid confusion with the 'self' instance pointer.