createSubscriptions(server) { _subscriptionsTransportWs.SubscriptionServer.create({ execute: _graphql.execute, subscribe: _graphql.subscribe, onOperation: async (_message, params, webSocket) => Object.assign({}, params, await this._getGraphQLOptions(webSocket.upgradeReq)) }, { server, path: this.config.subscriptionsPath || (0, _requiredParameter.default)('You must provide a config.subscriptionsPath to createSubscriptions!') }); }
var server = (0, _app.getServer)(); var path = '/subscriptions'; var subServer = new _subscriptionsTransportWs.SubscriptionServer({ execute: _graphql.execute, subscribe: _graphql.subscribe,