Index: sdk/lib/io/secure_server_socket.dart |
diff --git a/sdk/lib/io/secure_server_socket.dart b/sdk/lib/io/secure_server_socket.dart |
index 7dfdb478f396beb2533779713a080cbf9bc3dd09..e9ffb97c346c57fcc3304b922158bb96de672a3a 100644 |
--- a/sdk/lib/io/secure_server_socket.dart |
+++ b/sdk/lib/io/secure_server_socket.dart |
@@ -53,6 +53,11 @@ class SecureServerSocket extends Stream<SecureSocket> { |
* SecureSocket.peerCertificate after connecting. If no certificate |
* was received, the result will be null. |
* |
+ * [supportedProtocols] is an optional list of protocols (in decreasing |
+ * order of preference) to use during the ALPN protocol negogiation with |
+ * clients. Example values are "http/1.1" or "h2". The selected protocol |
+ * can be obtained via [SecureSocket.selectedProtocol]. |
+ * |
* The optional argument [shared] specifies whether additional |
* SecureServerSocket objects can bind to the same combination of `address`, |
* `port` and `v6Only`. If `shared` is `true` and more `SecureServerSocket`s |
@@ -177,6 +182,11 @@ class RawSecureServerSocket extends Stream<RawSecureSocket> { |
* check SecureSocket.peerCertificate after connecting. If no certificate |
* was received, the result will be null. |
* |
+ * [supportedProtocols] is an optional list of protocols (in decreasing |
+ * order of preference) to use during the ALPN protocol negogiation with |
+ * clients. Example values are "http/1.1" or "h2". The selected protocol |
+ * can be obtained via [RawSecureSocket.selectedProtocol]. |
+ * |
* The optional argument [shared] specifies whether additional |
* RawSecureServerSocket objects can bind to the same combination of |
* `address`, `port` and `v6Only`. If `shared` is `true` and more |