MemoryTransport
One simulated client on a MemoryHub. Create via hub.connect().
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new MemoryTransport(hub): MemoryTransport;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
hub | MemoryHub |
Returns
Section titled “Returns”MemoryTransport
Methods
Section titled “Methods”close()
Section titled “close()”close(): void;Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”post()
Section titled “post()”post(data): void;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
data | unknown |
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”subscribe()
Section titled “subscribe()”subscribe(listener): () => void;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
listener | (data) => void |
Returns
Section titled “Returns”() => void