Skip to content
This repository has been archived by the owner on Jul 31, 2019. It is now read-only.

Add ability to reconnect to the current channel #4

Open
JordanMilne opened this issue May 9, 2015 · 1 comment
Open

Add ability to reconnect to the current channel #4

JordanMilne opened this issue May 9, 2015 · 1 comment

Comments

@JordanMilne
Copy link

This'd make transitioning between WiFi and 4G when using Plumble less painful.

Could probably do something like

            try {
                IChannel currChannel = mBinder.getSessionChannel();
                if (currChannel != null)
                    mReconnectChannel = currChannel.getId();
            } catch (RemoteException e) {}}

in setReconnecting() and then rejoin that channel in connect(), but I'm not that clear on how state should be managed between connection attempts, so I haven't been able to get it to work.

@acomminos
Copy link
Owner

Registered users should be automatically moved into their last channel by the server; is there any particularly good reason to support this if a user is not registered? I would prefer to minimize our local retention of server state.

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

2 participants