platform/packages/websocket/web/main.dart
2021-05-15 15:19:35 +08:00

12 lines
294 B
Dart

import 'dart:html';
import 'package:angel3_websocket/browser.dart';
/// Dummy app to ensure client works with DDC.
void main() {
var app = WebSockets(window.location.origin);
window.alert(app.baseUrl.toString());
app.connect().catchError((_) {
window.alert('no websocket');
});
}