File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 11
11
- Deprecated ` message.reactionCounts ` , ` message.reactionScores ` in favor of
12
12
` message.reactionGroups ` .
13
13
14
+ 🐞 Fixed
15
+ - ` Null check operator used on a null value ` in Websocket connect.
16
+
14
17
## 9.10.0
15
18
16
19
🐞 Fixed
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ class WebSocket with TimerHelper {
210
210
Future <Event > connect (
211
211
User user, {
212
212
bool includeUserDetails = false ,
213
- }) async {
213
+ }) {
214
214
if (_connectRequestInProgress) {
215
215
throw const StreamWebSocketError ('''
216
216
You've called connect twice,
@@ -222,8 +222,17 @@ class WebSocket with TimerHelper {
222
222
223
223
_user = user;
224
224
_connectionStatus = ConnectionStatus .connecting;
225
+
225
226
connectionCompleter = Completer <Event >();
226
227
228
+ _setupConnection (includeUserDetails: includeUserDetails);
229
+
230
+ return connectionCompleter! .future;
231
+ }
232
+
233
+ Future <void > _setupConnection ({
234
+ required bool includeUserDetails,
235
+ }) async {
227
236
try {
228
237
final uri = await _buildUri (
229
238
includeUserDetails: includeUserDetails,
@@ -233,8 +242,6 @@ class WebSocket with TimerHelper {
233
242
} catch (e, stk) {
234
243
_onConnectionError (e, stk);
235
244
}
236
-
237
- return connectionCompleter! .future;
238
245
}
239
246
240
247
int _reconnectAttempt = 0 ;
You can’t perform that action at this time.
0 commit comments