diff --git a/lib/controller/ws.dart b/lib/controller/ws.dart index b55cd07..400d94b 100644 --- a/lib/controller/ws.dart +++ b/lib/controller/ws.dart @@ -9,7 +9,7 @@ class LiveFeeder { String socketUrl = 'ws://xenon:3050/ws'; Uri baseUri = Uri.base; if (baseUri.scheme == 'http' || baseUri.scheme == 'https') { - String port = (baseUri.hasPort ? ':' + baseUri.port.toString() : ''); + String port = (baseUri.hasPort ? ':${baseUri.port}' : ''); socketUrl = 'ws://${baseUri.host}$port/ws'; } _wsUri = Uri.parse(socketUrl);