Implement Webuntis HTTP Api and Display
This commit is contained in:
10
lib/dataOld/socketConnection.dart
Normal file
10
lib/dataOld/socketConnection.dart
Normal file
@ -0,0 +1,10 @@
|
||||
import 'package:web_socket_channel/web_socket_channel.dart';
|
||||
|
||||
class SocketConnection {
|
||||
static final _connection = WebSocketChannel.connect(
|
||||
Uri.parse('ws://localhost:1234'),
|
||||
);
|
||||
|
||||
static var read = _connection.stream.asBroadcastStream();
|
||||
static var write = _connection.sink;
|
||||
}
|
Reference in New Issue
Block a user