message: Subscription context fix
diff: @@ -455,11 +455,9 @@ export class GraphQLModule<Config = any, Session = any, Context = any> {
  let onConnectHookProviders: Array<ServiceIdentifier<any>>;
  let onDisconnectHookProviders: Array<ServiceIdentifier<any>>;
  this._cache.subscriptionHooks = {
  - onConnect: (connectionParams, websocket, connectionSession) => {
  + onConnect: async (connectionParams, websocket, connectionSession) => {
  const moduleNameContext$Map = this.getModuleNameContext$Map(connectionSession);
  if (!moduleNameContext$Map.has(this.name)) {
  - moduleNameContext$Map.set(this.name, new Promise(async (resolve, reject) => {
  - try {
  const importsOnConnectHooks$ = subscriptionHooks.map(async ({ onConnect }) => onConnect && onConnect(connectionParams, websocket, connectionSession));
  const importsOnConnectHooks = await Promise.all(importsOnConnectHooks$);
  const importsResult = importsOnConnectHooks.reduce((acc, curr) => ({ ...acc, ...(curr || {}) }), {});
  @@ -480,14 +478,10 @@ export class GraphQLModule<Config = any, Session = any, Context = any> {
  }
  const results = await Promise.all(onConnectHookProviders.map(serviceIdentifier => sessionInjector.callHookWithArgs('onConnect', serviceIdentifier, connectionParams, websocket, connectionContext)));
  const hookResult = results.reduce((acc, curr) => ({ ...acc, ...(curr || {}) }), {});
  - resolve({
  + moduleNameContext$Map.set(this.name, Promise.resolve({
  ...importsResult,
  ...connectionContext,
  ...hookResult,
  - });
  - } catch (e) {
  - reject(e);
  - }
  }));
  }
  return moduleNameContext$Map.get(this.name);
  