Fixing circular reference issue when trying to send context object to browser with socket attached to it.