Remove html depencencies and alway connecto to remote server.

This commit is contained in:
Marco 2023-01-29 21:09:18 +01:00
parent c7810d4e7e
commit 122731ac50
3 changed files with 4 additions and 11 deletions

View File

@ -34,12 +34,8 @@ class ServerConnection {
void connect() {
if (wasConnected) channel.sink.close();
if (kDebugMode) {
channel = WebSocketChannel.connect(Uri.parse('ws://localhost:8080'));
} else {
channel =
WebSocketChannel.connect(Uri.parse('wss://chess.sw-gross.de:8080'));
}
channel =
WebSocketChannel.connect(Uri.parse('wss://chess.sw-gross.de:8080'));
log(channel.closeCode.toString());

View File

@ -1,9 +1,6 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
import 'package:mchess/chess/chess_app.dart';
void main() {
if (kIsWeb) setUrlStrategy(PathUrlStrategy());
runApp(const ChessApp());
}

View File

@ -273,10 +273,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: c9282698e2982b6c3817037554e52f99d4daba493e8028f8112a83d68ccd0b12
sha256: "6182294da5abf431177fccc1ee02401f6df30f766bc6130a0852c6b6d7ee6b2d"
url: "https://pub.dev"
source: hosted
version: "0.4.17"
version: "0.4.18"
typed_data:
dependency: transitive
description: