NetworkerServer<T extends ConnectionInfo> class
abstract
The server abstraction of the networker library Please note that connection ids can only be between 2 and 2^16
- Inheritance
-
- Object
- NetworkerPipe<
Uint8List, Uint8List> - RawNetworkerPipe
- NetworkerBase
- NetworkerServer
Constructors
Properties
- address → Uri
-
no setterinherited
-
clientChange
→ Stream<
Set< Channel> > -
no setter
-
clientConnect
→ Stream<
(Channel, ConnectionInfo)> -
no setter
-
clientConnections
→ Set<
Channel> -
no setter
-
clientDisconnect
→ Stream<
(Channel, ConnectionInfo)> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isClosed → bool
-
no setterinherited
- isOpen → bool
-
no setterinherited
-
onClosed
→ Stream<
void> -
no setterinherited
-
onOpen
→ Stream<
void> -
no setterinherited
-
read
→ Stream<
NetworkerPacket< Uint8List> > -
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
write
→ Stream<
NetworkerPacket< Uint8List> > -
no setterinherited
Methods
-
addClientConnection(
T info) → Channel -
close(
) → FutureOr< void> -
inherited
-
closeConnection(
Channel id) → void -
connect(
NetworkerPipe< Uint8List, dynamic> pipe) → void -
inherited
-
decode(
Uint8List data) → Uint8List -
inherited
-
decodeChannel(
Uint8List data, Channel channel) → (Uint8List, Channel)? -
inherited
-
disconnect(
NetworkerPipe< Uint8List, dynamic> pipe) → void -
inherited
-
encode(
Uint8List data) → Uint8List -
inherited
-
encodeChannel(
Uint8List data, Channel channel) → (Uint8List, Channel)? -
inherited
-
getConnectionInfo(
Channel channel) → T? -
init(
) → FutureOr< void> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onMessage(
Uint8List data, [Channel channel = kAnyChannel]) → void -
inherited
-
removeConnection(
Channel id) → bool -
sendMessage(
Uint8List data, [Channel channel = kAnyChannel]) → void -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited