ServeMe<C extends ServeMeClient> class Null safety

Constructors

ServeMe({String configFile = 'config.yaml', ServeMeType type = ServeMeType.ws, Config configFactory(String filename)?, C clientFactory(ServeMeSocket)?, Map<String, Module<C>>? modules, Map<String, CollectionDescriptor>? dbIntegrityDescriptor})

Properties

clients List<C>
read-only
config Config
latefinal
console Console
latefinal
db Future<Db>
read-only
debug Future<void> Function(String, [String])
read-only
error Future<void> Function(String, [StackTrace?])
read-only
hashCode int
The hash code for this object.
read-onlyinherited
log Future<void> Function(String, [String])
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

broadcast(dynamic data, {bool where(C)?}) → void
cancel<T>(Future<void> handler(T, C)) → void
connect(dynamic address, {Map<String, dynamic> headers = const <String, dynamic>{}, int port = 0, bool autoReconnect = true, int queryTimeout = 30, dynamic onConnect()?, dynamic onDisconnect()?}) Future<ServeMeClient>
listen<T>(Future<void> handler(T, C)) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
register(Map<int, PackMeMessage Function()> messageFactory) → void
run() Future<bool>
stop() Future<void>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](String module) Module<C>?