socket.io client and api implemented