platform/packages/websocket/web/main.dart

13 lines
294 B
Dart
Raw Normal View History

2017-10-19 22:26:59 +00:00
import 'dart:html';
2021-05-15 07:19:35 +00:00
import 'package:angel3_websocket/browser.dart';
2017-10-19 22:26:59 +00:00
/// 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
}