FakeWebSocketServer constructor

FakeWebSocketServer({
  1. bool autoAccept = true,
  2. String? protocol,
  3. bool supportsPing = true,
})

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,
});