Correcting api url
All checks were successful
Build Flutter Web and Docker Image for Local Registry / Build Flutter Web App (push) Successful in 3m16s

This commit is contained in:
whysman 2024-11-11 23:41:13 -05:00
parent b3a43c9fa5
commit 3404c2fda0

View File

@ -34,8 +34,8 @@ class StatusPageState extends State<StatusPage> with WidgetsBindingObserver {
void _initializeWebSocket() {
channel = WebSocketChannel.connect(
//Uri.parse('wss://api.pogdark.com:8889/ws'),
Uri.parse('ws://localhost:8080/ws'),
Uri.parse('wss://api.pogdark.com:8889/ws'),
//Uri.parse('ws://localhost:8080/ws'),
);
controller = StreamController<dynamic>.broadcast();
@ -88,7 +88,8 @@ class StatusPageState extends State<StatusPage> with WidgetsBindingObserver {
'Timestamp': DateTime.now().toIso8601String(),
};
final url = Uri.parse('http://localhost:8080/set');
//final url = Uri.parse('http://localhost:8080/set');
final url = Uri.parse('https://api.pogdark.com/set');
try {
final response = await http.post(
url,