LogCollectorServer class
Core logCollector server. Accepts WebSocket connections, receives log records
via rpc_dart contracts, and feeds them into a LogController.
Presentation (terminal, Flutter UI) is handled separately by consuming onRecord and onConnection streams.
Constructors
- LogCollectorServer({String host = '127.0.0.1', int port = 9500, LogController? controller})
Properties
- boundPort → int?
-
The actual port the server is listening on.
no setter
- controller → LogController
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- host → String
-
final
-
onConnection
→ Stream<
LogCollectorConnectionEvent> -
Stream of device connect/disconnect events.
no setter
-
onRecord
→ Stream<
TaggedRecord> -
Stream of log records tagged with device labels.
no setter
- port → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sessions
→ List<
LogCollectorSession> -
Currently connected sessions.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
start(
) → Future< void> - Start listening for WebSocket connections.
-
stop(
) → Future< void> - Stop the server and close all connections.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited