code: protected void onDDPConnect(DDPStateSingleton ddp) {
          if (!ddp.isLoggedIn()) {
              // override this to handle first time connection (usually to subscribe)
              // if we have a login resume token, use it
              String resumeToken = ddp.getResumeToken();
              if (resumeToken != null) {
                  ddp.login(resumeToken);
              }
          }
      }
docs: Override this to hook into what happens when DDP connect happens
  Default behavior is to feed in the resume token if available
  @param ddp DDP singleton