-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add httpClient parameter to WebSocket class
Consuming code can now pass in a predefined HttpClient, allowing for customisations such as a SecurityContext with an mTLS client certificate and password.
- Loading branch information
Showing
4 changed files
with
19 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,7 @@ | |
.packages | ||
build/ | ||
pubspec.lock | ||
coverage/ | ||
coverage/ | ||
|
||
.idea/ | ||
*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
import 'dart:io'; | ||
|
||
/// Create a WebSocket connection. | ||
Future<Stream<dynamic>> connect( | ||
String url, { | ||
Iterable<String>? protocols, | ||
Duration? pingInterval, | ||
String? binaryType, | ||
HttpClient? httpClient, | ||
}) { | ||
throw UnsupportedError('No implementation of the api provided'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters