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

The following changes allow multiple instances of Emite to be created. #31

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Commits on Dec 7, 2011

  1. These changes allow the user to create multiple connections to different

    XMPP Servers.
    ted authored and ted committed Dec 7, 2011
    Configuration menu
    Copy the full SHA
    c50f355 View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2011

  1. Configuration menu
    Copy the full SHA
    0ef9f61 View commit details
    Browse the repository at this point in the history
  2. This will make sure the browser AutoConfig browser module works with the

    new multisession conversion.
    tguless committed Dec 8, 2011
    Configuration menu
    Copy the full SHA
    19c28ed View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2011

  1. Configuration menu
    Copy the full SHA
    0d8c16a View commit details
    Browse the repository at this point in the history
  2. Confirmed that after these changes, multiple logins are working:

    String loginid1 = "1";
    String loginid2 = "2";
    
    String password1 = "password1";
    String password2 = "password2";
    
    HashMap<String, LoginXmpp> loginXmppMap = ginjector.getLoginXmppMap();
    
    LoginXmpp loginXmpp1 = ginjector.getLoginXmpp(); 
    loginXmppMap.put(loginid1, loginXmpp1);
    loginXmpp.setInstanceId(loginid1);         
    
    XmppConnection connection1 = loginXmpp1.xmppConnection;
    connection1.setSettings(new ConnectionSettings("mainmodule/proxy",
    GlobalRegistry.serverInfo.chatServer));
    XmppSession session1 = loginXmpp1.xmppSession;       
    session1.login(uri(loginid1+"@" +
    GlobalRegistry.serverInfo.chatServer),password1);
    
    LoginXmpp loginXmpp2 = ginjector.getLoginXmpp(); 
    loginXmppMap.put(loginid2, loginXmpp2);
    loginXmpp.setInstanceId(loginid2);         
    
    XmppConnection connection2 = loginXmpp2.xmppConnection;
    connection2.setSettings(new ConnectionSettings("mainmodule/proxy",
    GlobalRegistry.serverInfo.chatServer));
    XmppSession session2 = loginXmpp2.xmppSession;       
    session2.login(uri(loginid2+"@" +
    GlobalRegistry.serverInfo.chatServer),password2);
    tguless committed Dec 10, 2011
    Configuration menu
    Copy the full SHA
    1e93d7d View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2011

  1. Configuration menu
    Copy the full SHA
    d497fd8 View commit details
    Browse the repository at this point in the history