Remove extra logging
Fix URL query parameters
Don't try and write while connection is blocked, raise a warning. Handle socket errors better.
Add heartbeat handling and tuning, handle remote Connection.Close requests