The following changes allow multiple instances of Emite to be created.#31
Open
tguless wants to merge 6 commits intoEmiteGWT:masterfrom
Open
The following changes allow multiple instances of Emite to be created.#31tguless wants to merge 6 commits intoEmiteGWT:masterfrom
tguless wants to merge 6 commits intoEmiteGWT:masterfrom
Conversation
tguless
commented
Dec 8, 2011
Member
|
Thanks Ted! There's loads of changes there - a quick check looks good but I'm hoping I'll have a bit of time to go through it all more thoroughly. Good stuff :) |
Author
|
Small correction: |
new multisession conversion.
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);
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.