NetworkerServer<T extends ConnectionInfo> class
abstract
- Inheritance
-
- Mixed-in types
-
Methods
-
addClientConnection(T info, [Channel? id])
→ Channel
-
inherited
-
clearConnections()
→ void
-
inherited
-
close()
→ FutureOr<void>
-
inherited
-
closeConnection(Channel id)
→ void
-
inherited
-
connect(NetworkerPipe<Uint8List, dynamic> pipe)
→ void
-
inherited
-
decode(Uint8List data)
→ Uint8List
-
inherited
-
decodeChannel(Uint8List data, Channel channel)
→ FutureOr<(Uint8List, Channel)?>
-
inherited
-
disconnect(NetworkerPipe<Uint8List, dynamic> pipe)
→ void
-
inherited
-
dispose()
→ void
-
Disposes all stream controllers and disconnects all connected pipes.
inherited
-
encode(Uint8List data)
→ Uint8List
-
inherited
-
encodeChannel(Uint8List data, Channel channel)
→ FutureOr<(Uint8List, Channel)?>
-
inherited
-
getConnectionInfo(Channel channel)
→ T?
-
inherited
-
init()
→ FutureOr<void>
-
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
onClientConnected(Channel id, T info)
→ void
-
Called when a new client connection is added.
Override this to perform custom logic on connection.
inherited
-
onClientDisconnected(Channel id, T info)
→ void
-
Called when a client disconnects.
Override this to perform custom logic on disconnection.
inherited
-
onMessage(Uint8List data, [Channel channel = kAnyChannel])
→ Future<void>
-
inherited
-
removeConnection(Channel id)
→ bool
-
inherited
-
sendMessage(Uint8List data, [Channel channel = kAnyChannel])
→ Future<void>
-
inherited
-
sendPacket(Uint8List data, Channel channel)
→ FutureOr<void>
-
inherited
-
toString()
→ String
-
A string representation of this object.
inherited