Skip to content
This repository has been archived by the owner on Jan 17, 2021. It is now read-only.

connectionDidConnect is not called (iOS) #65

Open
ORCatalin opened this issue Jul 8, 2016 · 1 comment
Open

connectionDidConnect is not called (iOS) #65

ORCatalin opened this issue Jul 8, 2016 · 1 comment

Comments

@ORCatalin
Copy link

After i accept the connection the connection's delegate methods are not called.

@ORCatalin
Copy link
Author

ORCatalin commented Jul 9, 2016

To make these delegate methods to be called i had to add self.connection.delegate = self where we set the connection and it seems that is working now.

-(void)device:(TCDevice *)device didReceiveIncomingConnection:(TCConnection *)connection {
    self.connection = connection;
    self.connection.delegate = self;
    [self javascriptCallback:@"onincoming"];
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant