We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am toying around with the library in a real iOS app. If you create a channel just after creating the realtime instance, it never attaches.
This doesn't work, and the channel seems stuck in the ATTACHING state:
let client = ARTRealtime(key: "I2E_JQ.j3RKrw:oh3rkv_jaIB3S60u") let channel = client.channels.get("government") channel.on { errorInfo in print("channel state \(channel.state.rawValue) \(errorInfo)") } channel.subscribe { message in print(message) }
This does work:
let client = ARTRealtime(key: "I2E_JQ.j3RKrw:oh3rkv_jaIB3S60u") client.connection.on { stateChange in print("connection state \(stateChange?.current.rawValue)") guard let current = stateChange?.current else { return } if current == .Connected { print("connected!") let channel = client.channels.get("government") channel.on { errorInfo in print("channel state \(channel.state.rawValue) \(errorInfo)") } channel.subscribe { message in print(message) } } }
The text was updated successfully, but these errors were encountered:
I can't reproduce this. No idea why it wasn't working...
Sorry, something went wrong.
Add ClientOptions.channelRetryTimeout to IDL. (#218)
978f756
No branches or pull requests
I am toying around with the library in a real iOS app. If you create a channel just after creating the realtime instance, it never attaches.
This doesn't work, and the channel seems stuck in the ATTACHING state:
This does work:
The text was updated successfully, but these errors were encountered: