File tree Expand file tree Collapse file tree 4 files changed +20
-5
lines changed
Expand file tree Collapse file tree 4 files changed +20
-5
lines changed Original file line number Diff line number Diff line change 1+ ## 0.1.7
2+
3+ - fix #188 , Determine the boundary if ` channelGenerator ` is null and uri is not null
4+ - Update the dependent package rxdart to ^0.25.0
5+
16## 0.1.6
27
38- Delay requests until connect is done
Original file line number Diff line number Diff line change @@ -95,9 +95,12 @@ class WebSocketLink extends Link {
9595 this .initialPayload,
9696 this .inactivityTimeout,
9797 }) : assert (uri == null || (channel == null && channelGenerator == null )) {
98- _uri = uri;
99- _channelGenerator = channelGenerator;
100- _channel = channel ?? _channelGenerator ();
98+ if (uri != null ) {
99+ _uri = uri;
100+ } else {
101+ _channelGenerator = channelGenerator;
102+ _channel = channel ?? _channelGenerator ();
103+ }
101104 _connectionStateController.value = closed;
102105 }
103106
Original file line number Diff line number Diff line change 11name : gql_websocket_link
2- version : 0.1.6
2+ version : 0.1.7
33description : GQL Websocket Link
44repository : https://github.com/gql-dart/gql
55environment :
@@ -9,7 +9,7 @@ dependencies:
99 gql_exec : ^0.2.5
1010 gql_link : ^0.3.1
1111 meta : ^1.1.8
12- rxdart : ^0.24 .0
12+ rxdart : ^0.25 .0
1313 uuid_enhanced : ^3.0.2
1414 web_socket_channel : ^1.1.0
1515dev_dependencies :
Original file line number Diff line number Diff line change @@ -12,6 +12,13 @@ void main() {
1212 group (
1313 "WebSocketLink" ,
1414 () {
15+ test ("WebSocketLink Construction with uri isn't null" , () {
16+ final wsLink = WebSocketLink (
17+ "" ,
18+ initialPayload: {"authorization" : "Bearer 12345" },
19+ );
20+ });
21+
1522 test (
1623 "send connection_init" ,
1724 () async {
You can’t perform that action at this time.
0 commit comments