added socket get, post, put, and delete functions client side