testing library

Test helpers: an in-memory WebSocket server to drive a WebSocketClient without sockets.

Classes

FakeWebSocketConnection
The server side of one fake connection.
FakeWebSocketServer
An in-memory WebSocket server for tests. Pass it as WebSocketOptions.transport; every connect creates a FakeWebSocketConnection that the test drives.