Encrypted peer-to-peer IM for data security. Own data, own privacy. (Rust+Flutter)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
385 B

// ignore: avoid_web_libraries_in_flutter
import 'dart:html';
import 'package:web_socket_channel/html.dart';
import 'package:web_socket_channel/web_socket_channel.dart';
abstract class MyWsChannelImpl {
static Future<WebSocketChannel> connect(Uri uri) async {
// ignore: close_sinks
var ws = WebSocket(uri.toString());
return HtmlWebSocketChannel(ws);
}
}