I don't think the above line can work, as from what I can tell, this.notifications doesn't (and shouldn't, IMO) have an onServerReconnection method.