You should issue lsPage.context.setDomain before calling createEngine (which, in turn, precedes the invocation to onEngineCreation).
When setDomain is invoked at the proper time, you should see your domain reported in the create_session URL.