platform/packages/websocket/web/main.dart
2021-04-10 23:12:43 +08:00

12 lines
293 B
Dart

import 'dart:html';
import 'package:angel_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');
});
}