SIGN IN SIGN UP

Improve protocol class

- Move destroy logic into the class itself
- Improve logging a bit
- Remove the record option; we should always do this when using
  permessage-deflate.
- Let debug port be null (it can be null in the message args).
- Add setSocket so we don't have to initiate a connection to set it.
- Move inflate bytes logic into the class itself.
A
Asher committed
ae6089f852f3d92de778cb8f81e948a2fd4ca48b
Parent: cbc2e8b