I have:
connect(id: string) {
console.log(id);
this.connection = this.api.connect(id);
this.connection.on('open', function () {
this.testConnect();
});
}
testConnect(){
}
I want to be able to call the testConnect function from within the this.connection.on