MockSocket

MockSocket

A double-ended mock socket, for use in testing. No actual network connections are created, so this can be used for testing no matter what permissions you have in your CI system.

Constructor

new MockSocket(opts)

Creates an instance of MockSocket.
Source:
Parameters:
Name Type Description
opts stream.DuplexOptions Options for both server and client sides.

Classes

MockSocket