This repository has been archived by the owner on May 13, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make compatible with flutter web (#6)
* make compatible with flutter web * fix tests * update changelog and version * remove merge leftovers
- Loading branch information
1 parent
3648fc7
commit e958ba8
Showing
7 changed files
with
46 additions
and
15 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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
## [0.0.7] | ||
|
||
- fix: Web compatibility | ||
|
||
## [0.0.6] | ||
|
||
- fix: RetryTimer `_tries` is not initialized | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import 'package:web_socket_channel/io.dart'; | ||
import 'package:web_socket_channel/web_socket_channel.dart'; | ||
|
||
WebSocketChannel createWebSocketClient( | ||
String url, Map<String, String> headers) { | ||
return IOWebSocketChannel.connect(url, headers: headers); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import 'package:web_socket_channel/web_socket_channel.dart'; | ||
|
||
WebSocketChannel createWebSocketClient( | ||
String url, Map<String, String> headers) { | ||
throw UnimplementedError( | ||
'Websocket Client not implemented for this platform'); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import 'package:web_socket_channel/html.dart'; | ||
import 'package:web_socket_channel/web_socket_channel.dart'; | ||
|
||
WebSocketChannel createWebSocketClient( | ||
String url, Map<String, String> headers) { | ||
return HtmlWebSocketChannel.connect(url); | ||
} |
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