Client model and code updated

Added an error event in the connected state that can get triggered
from an error occuring when a user attempts to subscribe to a path.