Vertex Viewer SDK
    Preparing search index...

    Class WebSocketClientMock

    Implements

    Index
    • Skips the next N sent messages.

      Parameters

      • n: number = 1

        The number of sent messages to skip over.

      Returns this

      const ws = new WebSocketClientMock();
      ws.send("1");
      ws.send("2");
      ws.send("3");

      ws.skipSent(2);
      ws.nextSent(); // "3"