Make socket a variable on GraphModel, then just pass _this.fetchData as the callback.  Otherwise you'll need to pass socket around everywhere you want to use it.