We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4eee945 commit 939b9b0Copy full SHA for 939b9b0
app/lib/models/communicator.dart
@@ -112,8 +112,8 @@ class SocketNotifier extends StateNotifier<Socket?> {
112
return;
113
}
114
115
- final int socketPort = (port == null || port == 0) ? (secure ? 443 : 80) : port!;
116
- final scheme = secure ? 'wss' : 'ws';
+ final socketPort = (port == null || port == 0) ? (secure ? 443 : 80) : port;
+ final scheme = secure ? "wss" : "ws";
117
var url = "$scheme://$hostname:$socketPort";
118
if (token != null) url += "?token=$token";
119
0 commit comments