platform/packages/websocket/web/main.dart

13 lines
293 B
Dart
Raw Normal View History

2017-10-19 22:26:59 +00:00
import 'dart:html';
import 'package:angel_websocket/browser.dart';
/// Dummy app to ensure client works with DDC.
2021-04-10 15:12:43 +00:00
void main() {
var app = WebSockets(window.location.origin);
2019-01-06 02:41:46 +00:00
window.alert(app.baseUrl.toString());
2017-10-19 22:26:59 +00:00
app.connect().catchError((_) {
window.alert('no websocket');
});
2018-10-02 15:32:06 +00:00
}