Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regarding ConnectionID #292

Open
raghubb4444 opened this issue Aug 3, 2017 · 1 comment
Open

Regarding ConnectionID #292

raghubb4444 opened this issue Aug 3, 2017 · 1 comment

Comments

@raghubb4444
Copy link

I am not able to get my connectionId..How to achieve? I want to send connectionID to my server....Please help out

@joeldart
Copy link
Member

joeldart commented Aug 3, 2017

connectionid becomes available/valid on the SRConnection object after the started callback.

    __weak __typeof(&*_connection)weakConnection = _connection;
    
    self.connection.started = ^{
        __weak __typeof(&*weakConnection)strongConnection = weakConnection;
        
        id parameters = @{
            @"connection_id" : (strongConnection.connectionId) ? strongConnection.connectionId : @""
        };
    };

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

No branches or pull requests

2 participants