FakeWebSocketServer constructor
Creates a server. With autoAccept every connection opens right away;
otherwise the test calls FakeWebSocketConnection.accept or
FakeWebSocketConnection.reject.
Implementation
FakeWebSocketServer({
this.autoAccept = true,
this.protocol,
this.supportsPing = true,
});