bind static method
Future<FakeDomeServerBinding>
bind({
- FakeDomeServer? server,
- int port = 0,
- String address = '127.0.0.1',
- bool mdns = false,
- String? log,
Binds the fake to a TCP port (dart:io only): REST + plain WS + GraphQL (HTTP + WS) + socket.io /v1; with
mdns it also answers mDNS queries for _freedome._tcp. Returns the bound server; close() it at the end.
Implementation
static Future<FakeDomeServerBinding> bind({
FakeDomeServer? server,
int port = 0,
String address = '127.0.0.1',
bool mdns = false,
String? log,
}) => bind_impl.bindFakeDome(
server ?? FakeDomeServer(),
port: port,
address: address,
mdns: mdns,
);