fix to sockets and added socketio to client