Skip to content

Commit

Permalink
Make SseConnection extend StreamChannelMixin<String> (#102)
Browse files Browse the repository at this point in the history
I don't see any reason for the type argument to be nullable. Seems like a null safety migration artifact.
  • Loading branch information
Ilya Yanok authored Feb 9, 2024
1 parent e483b14 commit af7d8d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/server/sse_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class _SseMessage {
}

/// A bi-directional SSE connection between server and browser.
class SseConnection extends StreamChannelMixin<String?> {
class SseConnection extends StreamChannelMixin<String> {
/// Incoming messages from the Browser client.
final _incomingController = StreamController<String>();

Expand Down

0 comments on commit af7d8d0

Please sign in to comment.