platform/packages/websocket/web/main.dart

13 lines
292 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.
main() {
var app = new 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
}