How to use the subscriptions-transport-ws.SubscriptionServer.prototype function in subscriptions-transport-ws

To help you get started, we’ve selected a few subscriptions-transport-ws examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github qmit-pro / moleculer-api / src / schema / plugin / protocol / graphql / handler / subscription.ts View on Github external
socket.on("message", this.onMessage(connectionContext));
    };

    this.handler = connectionHandler.bind(this);
  }

  public close(): void {
    throw new Error("unexpected access");
  }

  public get server(): WebSocket.Server {
    throw new Error("unexpected access");
  }

  // @ts-ignore
  private loadExecutor = SubscriptionServer.prototype.loadExecutor;
  // @ts-ignore
  private unsubscribe = SubscriptionServer.prototype.unsubscribe;
  // @ts-ignore
  private onClose = SubscriptionServer.prototype.onClose;
  // @ts-ignore
  private onMessage = SubscriptionServer.prototype.onMessage;
  // @ts-ignore
  private sendKeepAlive = SubscriptionServer.prototype.sendKeepAlive;
  // @ts-ignore
  private sendMessage = SubscriptionServer.prototype.sendMessage;
  // @ts-ignore
  private sendError = SubscriptionServer.prototype.sendError;
}
github qmit-pro / moleculer-api / src / schema / plugin / protocol / graphql / handler / subscription.ts View on Github external
this.handler = connectionHandler.bind(this);
  }

  public close(): void {
    throw new Error("unexpected access");
  }

  public get server(): WebSocket.Server {
    throw new Error("unexpected access");
  }

  // @ts-ignore
  private loadExecutor = SubscriptionServer.prototype.loadExecutor;
  // @ts-ignore
  private unsubscribe = SubscriptionServer.prototype.unsubscribe;
  // @ts-ignore
  private onClose = SubscriptionServer.prototype.onClose;
  // @ts-ignore
  private onMessage = SubscriptionServer.prototype.onMessage;
  // @ts-ignore
  private sendKeepAlive = SubscriptionServer.prototype.sendKeepAlive;
  // @ts-ignore
  private sendMessage = SubscriptionServer.prototype.sendMessage;
  // @ts-ignore
  private sendError = SubscriptionServer.prototype.sendError;
}