fixedAddressWebSocketLookUps function
AtLookUpFactory
fixedAddressWebSocketLookUps({
- required String host,
- required int port,
- String path = '/ws',
- Future<
void> onConnect(- AtCommandExecutor connection
An AtLookUpFactory for development, connecting every atSign to the
atServer at wss://host:port + path without asking the atDirectory.
onConnect runs on each connection before anything else is sent on it.
Implementation
AtLookUpFactory fixedAddressWebSocketLookUps({
required String host,
required int port,
String path = '/ws',
Future<void> Function(AtCommandExecutor connection)? onConnect,
}) =>
_webSocketLookUps(
path: path,
finderFor: (_) => FixedSecondaryAddressFinder(host, port),
onConnect: onConnect);