Index: sdk/lib/io/secure_socket.dart |
diff --git a/sdk/lib/io/secure_socket.dart b/sdk/lib/io/secure_socket.dart |
index b089fa5fb8f30fa263e277a2912cf07fc38328e4..e61faa5b6e80ec80a8a1ab9967de1b566ccf5010 100644 |
--- a/sdk/lib/io/secure_socket.dart |
+++ b/sdk/lib/io/secure_socket.dart |
@@ -245,8 +245,10 @@ class _RawSecureSocket extends Stream<RawSocketEvent> |
bool this.sendClientCertificate, |
bool this.onBadCertificate(X509Certificate certificate)) { |
_controller = new StreamController<RawSocketEvent>( |
- onPauseStateChange: _onPauseStateChange, |
- onSubscriptionStateChange: _onSubscriptionStateChange); |
+ onListen: _onSubscriptionStateChange, |
+ onPause: _onPauseStateChange, |
+ onResume: _onPauseStateChange, |
+ onCancel: _onSubscriptionStateChange); |
_stream = _controller.stream; |
// Throw an ArgumentError if any field is invalid. After this, all |
// errors will be reported through the future or the stream. |