From d6d590684d091d4746743fe8a77ee548e88a3f17 Mon Sep 17 00:00:00 2001 From: Daniel Ponte Date: Mon, 12 Aug 2024 07:47:08 -0400 Subject: [PATCH] fix --- lib/controller/ws.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);