Correcting api url
All checks were successful
Build Flutter Web and Docker Image for Local Registry / Build Flutter Web App (push) Successful in 3m16s
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:
parent
b3a43c9fa5
commit
3404c2fda0
@ -34,8 +34,8 @@ class StatusPageState extends State<StatusPage> with WidgetsBindingObserver {
|
|||||||
|
|
||||||
void _initializeWebSocket() {
|
void _initializeWebSocket() {
|
||||||
channel = WebSocketChannel.connect(
|
channel = WebSocketChannel.connect(
|
||||||
//Uri.parse('wss://api.pogdark.com:8889/ws'),
|
Uri.parse('wss://api.pogdark.com:8889/ws'),
|
||||||
Uri.parse('ws://localhost:8080/ws'),
|
//Uri.parse('ws://localhost:8080/ws'),
|
||||||
);
|
);
|
||||||
|
|
||||||
controller = StreamController<dynamic>.broadcast();
|
controller = StreamController<dynamic>.broadcast();
|
||||||
@ -88,7 +88,8 @@ class StatusPageState extends State<StatusPage> with WidgetsBindingObserver {
|
|||||||
'Timestamp': DateTime.now().toIso8601String(),
|
'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 {
|
try {
|
||||||
final response = await http.post(
|
final response = await http.post(
|
||||||
url,
|
url,
|
||||||
|
Loading…
Reference in New Issue
Block a user