13 lines
348 B
Dart
13 lines
348 B
Dart
import 'dart:html';
|
|
import 'package:angel3_websocket/browser.dart';
|
|
|
|
/// Dummy app to ensure client works with DDC.
|
|
void main() {
|
|
var app = WebSockets(window.location.origin);
|
|
window.alert(app.baseUrl.toString());
|
|
|
|
// ignore: body_might_complete_normally_catch_error
|
|
app.connect().catchError((_) {
|
|
window.alert('no websocket');
|
|
});
|
|
}
|