Refactoring: operate with HttpSocketAPI inside Worker