fakes function that returns a pair of WebSockets useful in testing.WebSocketConnectionClosed rather StateError when attempting to send data to or close an already closed WebSocket.StateError in IOWebSocket when data is received from the peer after the connection has been closed locally.package:web_socket WebSocket given a dart:io WebSocket.