l.setLoginCallback(new LoginCallback() {
@Override
public void onLogin(InitBundle b) {
System.out.println(b.getChannelToken() + " on client");
channel = new ClientChannel(b.getChannelToken());
JsArray<BlobInfoJS> files = JsonUtils.safeEval(b.getFiles());
new FileController(b.getBlobstoreUrl(), files, mainPanel);
new ChatController(mainPanel.chatPanel);
}
});