Skip to content

Commit

Permalink
Add streams for open and close for networker
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Aug 17, 2024
1 parent ebc79d7 commit 4414799
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/networker/networker/lib/src/base.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
part of 'connection.dart';

sealed class NetworkerBase extends RawNetworkerPipe {
Stream<void> get onOpen;
Stream<void> get onClosed;
FutureOr<void> init();
bool get isClosed;
bool get isOpened => !isClosed;
void close();
Uri get address;
}

0 comments on commit 4414799

Please sign in to comment.