Function getLocal

  • Get a MockRTC instance on the local machine.

    In most simple environments, you can call this method directly and immediately get a MockRTC instance and start mocking peers.

    In node, the mocked peers will run in process and require no further setup.

    In browsers this is an alias for getRemote. You'll need to start a MockRTC admin server outside your tests before calling this, which will create and manage your fake peers outside the browser.

    Returns MockRTC

Generated using TypeDoc