Rodrigo Curiel - changed socket implementation to use RESTful