Helper for make yours API's able to accept connections via socket