Memory Driver
The Memory Driver is a simple in-memory signaling driver that allows you to exchange messages between peers within the same JavaScript environment. This driver is useful for testing and development purposes, as it does not require any external dependencies or network communication.
Usage
To use the Memory Driver, simply import it from the Peerix library and create an instance:
import { MemoryDriver } from 'peerix';
const driver = new MemoryDriver();You can then use this driver instance to create several Peer instances and establish connections between them. Since the Memory Driver operates within the same JavaScript environment, all peers that share the same driver instance will be able to discover each other and exchange messages. This makes it ideal for testing and development scenarios where you want to simulate peer-to-peer communication without the need for a real signaling server or network communication.