c97363d290
git-subtree-dir: packages/websocket git-subtree-mainline:e887b1d21f
git-subtree-split:229b5e7205
12 lines
292 B
Dart
12 lines
292 B
Dart
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);
|
|
window.alert(app.baseUrl.toString());
|
|
|
|
app.connect().catchError((_) {
|
|
window.alert('no websocket');
|
|
});
|
|
}
|